Update JavaScript port

This commit is contained in:
Themba Dube 2019-06-30 20:32:49 -04:00
parent c49e0e7204
commit 586f792c24
2 changed files with 17 additions and 17 deletions

View File

@ -149,7 +149,7 @@
function get_iframe_url() {
/* Assemble the URL */
var newPathname = window.location.href.substr(0, window.location.href.lastIndexOf('/'));
newPathname += "/lvgl.html" + (window.location.href.indexOf('?') ? '&' : '?') + "env=dev";
newPathname += "/lvgl.html" + (window.location.href.indexOf('?') != -1 ? '&' : '?') + "env=dev";
console.log(newPathname);
return newPathname;
}

File diff suppressed because one or more lines are too long