implement webpack and create scripts to bundle source

This commit is contained in:
Leon Bubova committed 2021-12-15 10:14:17 +01:00
1 parent e39b52e8e7
commit 7b9c1781b4
11 files changed
+3743 -20

No files matched your search

+18
View File
@@ -375,3 +375,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();