From 8713db3d55cbeb01b0d689b3ee4108b16e7eb698 Mon Sep 17 00:00:00 2001 From: Xiayucheng1212 Date: Wed, 17 Apr 2024 19:45:01 +0800 Subject: [PATCH] Fix params lost --- src/UI/UIWindow.js | 11 ++++++++++- src/helpers.js | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/UI/UIWindow.js b/src/UI/UIWindow.js index 812959f1..7a28b710 100644 --- a/src/UI/UIWindow.js +++ b/src/UI/UIWindow.js @@ -172,6 +172,14 @@ async function UIWindow(options) { // Window let zindex = options.stay_on_top ? (99999999 + last_window_zindex + 1 + ' !important') : last_window_zindex; + let user_set_url_params = []; + if (options.params !== undefined) { + for (let key in options.params) { + user_set_url_params.push(key + "=" + options.params[key]); + } + user_set_url_params = '?'+ user_set_url_params.join('&'); + + } h += `
{ element_uuid: uuid, title: title, iframe_url: iframe_url.href, + params: options.params ?? undefined, icon: icon, window_class: 'window-app', update_window_url: true,