Merge pull request #311 from leonbubova/feature/implement-webpack

Implement webpack to use ES6 modules
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2021-12-16 02:05:31 +03:00
commit c745a3566d
12 files changed
+3819 -70

No files matched your search

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