fix: replace skt.us with kernel.lumeweb.com

This commit is contained in:
Derrick Hammer 2023-07-02 12:35:05 -04:00
parent 962a79bf38
commit 079bfc2b19
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 2 deletions

View File

@ -70,7 +70,10 @@ function handleMessage(event: MessageEvent) {
// Ignore all messages that aren't from approved kernel sources. The two // Ignore all messages that aren't from approved kernel sources. The two
// approved sources are skt.us and the browser extension bridge (which has // approved sources are skt.us and the browser extension bridge (which has
// an event.source equal to 'window') // an event.source equal to 'window')
if (event.source !== window && event.origin !== "https://skt.us") { if (
event.source !== window &&
event.origin !== "https://kernel.lumeweb.com"
) {
return; return;
} }
@ -547,7 +550,7 @@ function newKernelQuery(
// The message structure needs to adjust based on whether we are // The message structure needs to adjust based on whether we are
// talking directly to the kernel or whether we are talking to the // talking directly to the kernel or whether we are talking to the
// background page. // background page.
if (kernelOrigin === "https://skt.us") { if (kernelOrigin === "https://kernel.lumeweb.com") {
kernelSource.postMessage(kernelMessage, kernelOrigin); kernelSource.postMessage(kernelMessage, kernelOrigin);
} else { } else {
kernelSource.postMessage(backgroundMessage, kernelOrigin); kernelSource.postMessage(backgroundMessage, kernelOrigin);