diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index e95389659..1405412c7 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -1533,6 +1533,10 @@ define([ }); }); }); + + sframeChan.on('Q_GET_PAD_TEAMS', function (types, cb) { + Cryptpad.getPadTeams(types, cb); + }); }; addCommonRpc(sframeChan, isSafe); diff --git a/www/secureiframe/main.js b/www/secureiframe/main.js index 6dd81e364..bbada15f8 100644 --- a/www/secureiframe/main.js +++ b/www/secureiframe/main.js @@ -162,11 +162,6 @@ define([ }); }); - - sframeChan.on('Q_GET_PAD_TEAMS', function (types, cb) { - Cryptpad.getPadTeams(types, cb); - }); - sframeChan.on('EV_SECURE_ACTION', function (data) { config.onAction(data); });