From 7b8c443cfe0f4ce839f4d67bb981a838aa23096e Mon Sep 17 00:00:00 2001 From: GoodBoi19 <181642507+Thebloxers998@users.noreply.github.com> Date: Sat, 16 Nov 2024 17:57:24 +0000 Subject: [PATCH] Update OAuth.js --- extensions/OAuth.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: {} }; }