From 872e636ac5136f96f4ac38845a2b8c00f6f57c74 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 21 Apr 2020 12:13:52 +0200 Subject: [PATCH] Fix access modal in drive --- www/common/sframe-common-outer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index aef3d3656..849bf6415 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -395,6 +395,7 @@ define([ var forceCreationScreen = cfg.useCreationScreen && sessionStorage[Utils.Constants.displayPadCreationScreen]; delete sessionStorage[Utils.Constants.displayPadCreationScreen]; + var isSafe = ['debug', 'profile', 'drive'].indexOf(currentPad.app) !== -1; var updateMeta = function () { //console.log('EV_METADATA_UPDATE'); var metaObj; @@ -459,7 +460,7 @@ define([ additionalPriv.registeredOnly = true; } - if (['debug', 'profile'].indexOf(currentPad.app) !== -1) { + if (isSafe) { additionalPriv.hashes = hashes; } @@ -620,7 +621,7 @@ define([ }); }; - addCommonRpc(sframeChan); + addCommonRpc(sframeChan, isSafe); var currentTitle; var currentTabTitle;