We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e86931 commit dbb85eeCopy full SHA for dbb85ee
untrusted/run.js
@@ -197,11 +197,7 @@ function ideRun() {
197
function receiveMessage(event) {
198
event = event.originalEvent // originalEvent is a jquery entity
199
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
- }
+ console.log("Setting trusted_origin:" + trusted_origin)
205
if (checkTrustedHosts(trusted_origin)) { // ensure that message is from glowscript
206
return;
207
}
0 commit comments