From fe020730ee8dacd0dbdcb1cb5982a600fa1d5969 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Sun, 23 Jun 2019 18:05:01 -0400 Subject: [PATCH] Don't add a second question mark in URL --- ports/javascript/lvgl_editor.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/javascript/lvgl_editor.html b/ports/javascript/lvgl_editor.html index 1124a0d3a..2ec6dac81 100644 --- a/ports/javascript/lvgl_editor.html +++ b/ports/javascript/lvgl_editor.html @@ -149,8 +149,7 @@ function get_iframe_url() { /* Assemble the URL */ var newPathname = window.location.href.substr(0, window.location.href.lastIndexOf('/')); - newPathname += "/lvgl.html?env=dev"; - newPathname = window.location.protocol + "//" + window.location.host + newPathname; + newPathname += "/lvgl.html" + (window.location.href.indexOf('?') ? ':' : '?') + "env=dev"; console.log(newPathname); return newPathname; }