mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-24 06:58:21 +00:00
do not append question mark to app URL if there is no query params to append
This commit is contained in:
+2
-2
@@ -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' : ''}
|
||||
|
||||
Reference in New Issue
Block a user