From ae04a09c9005bc0206c9960d6b8e4e52a2ed5555 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Thu, 11 Jul 2024 18:07:09 -0700 Subject: [PATCH] Take into account that `godmode` might be either integer or boolean --- src/gui/src/helpers/launch_app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/src/helpers/launch_app.js b/src/gui/src/helpers/launch_app.js index d6dc6553f..40a33d96a 100644 --- a/src/gui/src/helpers/launch_app.js +++ b/src/gui/src/helpers/launch_app.js @@ -197,7 +197,7 @@ const launch_app = async (options)=>{ // In godmode, we add the super token to the iframe URL // so that the app can access everything. - if (app_info.godmode && app_info.godmode === 1){ + if (app_info.godmode && (app_info.godmode === true || app_info.godmode === 1)){ iframe_url.searchParams.append('puter.auth.token', window.auth_token); iframe_url.searchParams.append('puter.auth.username', window.user.username); }