Skip to content

Commit

Permalink
Add netsblox.github.io as trusted extension provider (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Mar 29, 2024
1 parent 74ccf80 commit 83a7a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3735,7 +3735,7 @@ IDE_Morph.prototype.loadExtension = async function (url) {
};

IDE_Morph.prototype.isTrustedExtension = async function (url) {
const trustedLit = [ '/', window.location.origin];
const trustedLit = ['/', 'https://netsblox.github.io/', window.location.origin];
const trustedPat = [/^https?:\/\/([a-zA-Z0-9\-]+\.)*netsblox.org/];
const isAutoTrusted = trustedLit.some(lit => url.startsWith(lit)) || trustedPat.some(pat => !!url.match(pat));
if (isAutoTrusted) {
Expand Down

0 comments on commit 83a7a2b

Please sign in to comment.