diff options
Diffstat (limited to 'Library')
-rw-r--r-- | Library/SDK/Entrypoint.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/SDK/Entrypoint.js b/Library/SDK/Entrypoint.js index 5f603a2..d55d823 100644 --- a/Library/SDK/Entrypoint.js +++ b/Library/SDK/Entrypoint.js @@ -433,6 +433,10 @@ global._STRAWBERRY_INIT_APP = () => { global._STRAWBERRY_INIT_APP(); global.load = (module) => { + if (require('os').platform() === "linux" && module === "Strawberry.Menubar") { + module = "Strawberry.MenuBar"; + } + if (module.includes("/")) throw new Error("Invalid module: " + module); if (!fs.existsSync(__dirname + "/Modules/" + module + ".js")) throw new Error("Invalid module: " + module); @@ -450,4 +454,8 @@ global.load = (module) => { if (module === "Strawberry.Menubar") { load("Strawberry.MenuBar"); } + + if (require('os').platform() === "linux" && module === "Strawberry.MenuBar") { + Strawberry.Menubar = Strawberry.MenuBar; + } }
\ No newline at end of file |