mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-03 07:48:46 +08:00
do not append question mark to app URL if there is no query params to append
This commit is contained in:
parent
a3ec7bb5ad
commit
cb4776cc0e
@ -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' : ''}
|
||||
|
Loading…
Reference in New Issue
Block a user