From 079bfc2b192c267df9802536306fb453575c59d0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 2 Jul 2023 12:35:05 -0400 Subject: [PATCH] fix: replace skt.us with kernel.lumeweb.com --- src/kernel/queries.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kernel/queries.ts b/src/kernel/queries.ts index 7aada91..5231cfb 100644 --- a/src/kernel/queries.ts +++ b/src/kernel/queries.ts @@ -70,7 +70,10 @@ function handleMessage(event: MessageEvent) { // Ignore all messages that aren't from approved kernel sources. The two // approved sources are skt.us and the browser extension bridge (which has // 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; } @@ -547,7 +550,7 @@ function newKernelQuery( // The message structure needs to adjust based on whether we are // talking directly to the kernel or whether we are talking to the // background page. - if (kernelOrigin === "https://skt.us") { + if (kernelOrigin === "https://kernel.lumeweb.com") { kernelSource.postMessage(kernelMessage, kernelOrigin); } else { kernelSource.postMessage(backgroundMessage, kernelOrigin);