mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
Rename Toolkit's webextensions component directory to better reflect what it is.
This commit is contained in:
parent
6955450f7a
commit
d7d16e7fbb
242 changed files with 4 additions and 2 deletions
|
|
@ -1,22 +0,0 @@
|
|||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["webrequest_test"];
|
||||
|
||||
Components.utils.importGlobalProperties(["fetch", "XMLHttpRequest"]);
|
||||
|
||||
this.webrequest_test = {
|
||||
testFetch(url) {
|
||||
return fetch(url);
|
||||
},
|
||||
|
||||
testXHR(url) {
|
||||
return new Promise(resolve => {
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open("HEAD", url);
|
||||
xhr.onload = () => {
|
||||
resolve();
|
||||
};
|
||||
xhr.send();
|
||||
});
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue