Ah, I just specified how it would work normally, I’ve never built a Chrome extension and assumed they worked the same way. Have you read how Chrome extensions work? They can’t reference external scripts at all, it has to be contained in a single webpage, so you can’t do what you were trying to do anyway, you have to really package it up into a single script
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Ways to incorporate external JS libraries
|
1 | 474 | January 16, 2021 | |
|
Modules pattern ES6 - browser can't find a file path
|
5 | 10081 | January 16, 2021 | |
| Projects only work on CodePen | 5 | 605 | July 20, 2023 | |
| Please review Chrome Extension I made | 3 | 774 | February 6, 2021 | |
|
How to make a cross-browser extension using JavaScript and browser APIs
|
1 | 1995 | January 17, 2021 |