fix: replace skt.us with kernel.lumeweb.com
This commit is contained in:
parent
962a79bf38
commit
079bfc2b19
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue