diff --git a/extensions/OAuth.js b/extensions/OAuth.js index c66c504370..cac38ed33a 100644 --- a/extensions/OAuth.js +++ b/extensions/OAuth.js @@ -6,7 +6,9 @@ // License: MPL-2.0 (function (Scratch) { 'use strict'; - + if (!Scratch.extensions.unsandboxed) { + throw new Error('This extension must run unsandboxed'); + } let clientId = ''; let clientSecret = ''; let redirectUri = ''; @@ -132,8 +134,7 @@ text: 'Give Feedback' } ], - menus: {}, - unrestricted: true // Enable unsandboxed mode + menus: {} }; }