4 ms·
Quick question: why do you need to normalize the origin? Is it ever passed in by the browser runtime un-normalized? i..e, why couldn't you have written: if
by purplerails 13y ago
Quick question: why do you need to normalize the origin? Is it ever passed in by the browser runtime un-normalized?
i..e, why couldn't you have written:
if (e.origin !== 'https://clef.io') {
- jessepollak 13y agoYep, that code was actually legacy code that ended up causing problems. I stripped it out :D, but only after I'd spent a few hours messing around with this.
- purplerails 13y agoThanks. I was not normalizing, and wanted make sure it was OK.