Procházet zdrojové kódy

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

Nariman Jelveh před 10 měsíci
rodič
revize
ae04a09c90
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
         // 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);
         }