Skip to content

Commit 15d1d37

Browse files
authored
Refactor extensionEnvironment and start functions
Removed the extensionEnvironment function and modified the start function to not take parameters.
1 parent 1825aad commit 15d1d37

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

js/script.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4236,16 +4236,6 @@ Options -Indexes
42364236

42374237
/** Main **/
42384238

4239-
const extensionEnvironment = function() {
4240-
if (typeof browser !== 'undefined' && typeof browser.runtime !== 'undefined') {
4241-
return "Firefox extension";
4242-
} else if (typeof chrome !== 'undefined' && typeof chrome.runtime !== 'undefined') {
4243-
return "Chrome extension";
4244-
} else {
4245-
return null;
4246-
}
4247-
}
4248-
42494239
const loadWebsiteDependencies = async function() {
42504240
const page = thisPage();
42514241

@@ -4267,7 +4257,7 @@ Options -Indexes
42674257
}
42684258
}
42694259

4270-
const start = async function(lb) {
4260+
const start = async function() {
42714261
if (globalThis.localStorage.getItem("tables-created") !== "true") showLoader();
42724262
preFormatThead();
42734263

0 commit comments

Comments
 (0)