Skip to content

Commit dbb85ee

Browse files
committed
take out code to remove www
1 parent 7e86931 commit dbb85ee

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

untrusted/run.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,7 @@ function ideRun() {
197197
function receiveMessage(event) {
198198
event = event.originalEvent // originalEvent is a jquery entity
199199
trusted_origin = event.origin
200-
console.log("checking for www. (" + trusted_origin.slice(8,12) + ")")
201-
if (trusted_origin.slice(8,12) === 'www.') { // strip out www. if it's there. Keep 'https://' and the rest...
202-
trusted_origin = trusted_origin.slice(0,8) + trusted_origin.slice(12)
203-
console.log("found www., new trusted_origin:" + trusted_origin)
204-
}
200+
console.log("Setting trusted_origin:" + trusted_origin)
205201
if (checkTrustedHosts(trusted_origin)) { // ensure that message is from glowscript
206202
return;
207203
}

0 commit comments

Comments
 (0)