'How to import Jquery in Background service worker - Manifest V3 - Chrome Extension
"manifest_version": 3,
"background": {
"service_worker": "background.js"
}
I need to use Jquery in background.js. I cannot add jquery.min.js in the manifest because with the new upgrade v3 I cannot declare more than one JS in service_worker. How can I solve?
background.js
$.ajax({
type: "POST",
url: "https://wwww",
data: {text: "xxx"}
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
