Fix window.origin not being the "parent" document

This commit is contained in:
thepaperpilot 2024-02-18 16:09:58 +00:00
parent 73115594fe
commit e16fb553ae

View file

@ -125,7 +125,7 @@ export function initGalaxy({
}) {
return new Promise((accept, reject) => {
acceptedOrigins = acceptedOrigins ?? ["https://galaxy.click"];
if (acceptedOrigins.includes(window.origin)) {
if (acceptedOrigins.includes(document.referrer)) {
// Callbacks to resolve promises
/** @type function(SaveListResponse["list"]):void */
let saveListAccept,