Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Website vscode.dev not working with this extension #23

Open
flashcode opened this issue Oct 7, 2022 · 3 comments
Open

Website vscode.dev not working with this extension #23

flashcode opened this issue Oct 7, 2022 · 3 comments

Comments

@flashcode
Copy link

Hi,

When the extension is installed and enabled, the site https://vscode.dev is not working, with this error:

image

In the Javascript console:

(index):1 DOMException: Failed to execute 'postMessage' on 'Window': TrustedScriptURL object could not be cloned.
    at ServiceWorkerContainer.__bsw_override__ [as register] (<anonymous>:1:480)
    at https://vscode.dev/:1:6021
    at Generator.next (<anonymous>)
    at r (https://vscode.dev/:1:3008)

If I disable manually the extension, the site loads fine.

Is there some configuration to disable the extension only for this site, or some option to make the site work with the extension, or is it a bug in the extension itself?

Thanks for your help.

@clod81
Copy link
Owner

clod81 commented Dec 5, 2022

Sorry for the late reply.
I was able to reproduce. I'd need some time to investigate, but can't promise when

@clod81
Copy link
Owner

clod81 commented Dec 5, 2022

In the meantime, you can click on the extension (open the dialog), right click on it and choose Inspect

Then, click on the console tab and paste the following

domain = "vscode.dev";
path = "/sw.js";
chrome.storage.sync.get(domain, function(data){
    if(data[domain] === null || typeof data[domain] !== 'object'){
      data[domain] = {};
    }
    data[domain][path] = true;
    chrome.storage.sync.set(data);
})

@flashcode
Copy link
Author

Hi @clod81,

I can confirm that with your code pasted in the console, it works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants