mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-30 01:47:54 +01:00
Merge pull request #311 from leonbubova/feature/implement-webpack
Implement webpack to use ES6 modules
This commit is contained in:
12 files changed
+3819
-70
No files matched your search
@@ -367,3 +367,21 @@ RYD.getInstance = function () {
|
||||
if (typeof RYD.instance == "undefined") RYD.instance = new RYD();
|
||||
return RYD.instance;
|
||||
};
|
||||
|
||||
RYDTools = {};
|
||||
|
||||
RYDTools.getBrowser = function () {
|
||||
if (typeof chrome !== "undefined" && typeof chrome.runtime !== "undefined") {
|
||||
return chrome;
|
||||
} else if (
|
||||
typeof browser !== "undefined" &&
|
||||
typeof browser.runtime !== "undefined"
|
||||
) {
|
||||
return browser;
|
||||
} else {
|
||||
console.log("browser is not supported");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
RYD.getInstance().init();
|
||||
Reference in new issue
Block a user