Skip to content

thheller/chrome-ext-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chrome Extension v3 in CLJS

Ported this example to use ClojureScript with shadow-cljs.

Clone this repo and run

npm install
npx shadow-cljs watch ext
# or
npx shadow-cljs release ext

Then load the ext folder as an "Unpacked Extension" via Chrome Extensions.

Written using the "modern" :target :esm, which appears to work fine. Manifests no longer need to be modified by the build because ESM can load additional files on its own (as done with the :shared module).

Only relevant change over the JS version was adding "type": "module to the "background" in manifest.json. As well as type="module" in the popup.html.

For me the notification doesn't actually show and I'm not sure why. Might be because I blocked Chrome from showing Notifications, but I can't find any indicator about any of that. The code does load and run fine which is all I wanted to show.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published