Files
rfd-affiliate-stripper/extensions/chrome/utils.js
2023-04-08 00:04:33 -04:00

23 lines
519 B
JavaScript

function updateRedirects() {
chrome.storage.local.get("config", function (URL) {
fetch(URL.config)
.then((res) => res.json())
.then((res) => {
chrome.storage.local
.set({
redirects: res,
})
.catch((error) => {
console.log(error);
});
});
});
}
function setDefaultConfig() {
chrome.storage.local.set({
config:
"https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/redirects.json",
});
}