瀏覽代碼

Take into account that `godmode` might be either integer or boolean

Nariman Jelveh 10 月之前
父節點
當前提交
ae04a09c90
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/gui/src/helpers/launch_app.js

+ 1 - 1
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
         // In godmode, we add the super token to the iframe URL
         // so that the app can access everything.
         // 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.token', window.auth_token);
             iframe_url.searchParams.append('puter.auth.username', window.user.username);
             iframe_url.searchParams.append('puter.auth.username', window.user.username);
         } 
         }