Browse Source

do not append question mark to app URL if there is no query params to append

Nariman Jelveh 1 year ago
parent
commit
cb4776cc0e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/UI/UIWindow.js

+ 2 - 2
src/UI/UIWindow.js

@@ -177,8 +177,8 @@ async function UIWindow(options) {
         for (let key in options.params) {
             user_set_url_params.push(key + "=" + options.params[key]);
         }
-        user_set_url_params = '?'+ user_set_url_params.join('&');
-
+        if(user_set_url_params.length > 0)
+            user_set_url_params = '?'+ user_set_url_params.join('&');
     }
     h += `<div class="window window-active 
                         ${options.cover_page ? 'window-cover-page' : ''}