Fix window.origin not being the "parent" document
This commit is contained in:
parent
73115594fe
commit
e16fb553ae
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ export function initGalaxy({
|
||||||
}) {
|
}) {
|
||||||
return new Promise((accept, reject) => {
|
return new Promise((accept, reject) => {
|
||||||
acceptedOrigins = acceptedOrigins ?? ["https://galaxy.click"];
|
acceptedOrigins = acceptedOrigins ?? ["https://galaxy.click"];
|
||||||
if (acceptedOrigins.includes(window.origin)) {
|
if (acceptedOrigins.includes(document.referrer)) {
|
||||||
// Callbacks to resolve promises
|
// Callbacks to resolve promises
|
||||||
/** @type function(SaveListResponse["list"]):void */
|
/** @type function(SaveListResponse["list"]):void */
|
||||||
let saveListAccept,
|
let saveListAccept,
|
||||||
|
|
Loading…
Add table
Reference in a new issue