summaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-03 14:32:45 +0200
committerMinteck <contact@minteck.org>2022-07-03 14:32:45 +0200
commit0e9f2dc57e9df8fbc5a5da6d68d1268278aa4129 (patch)
tree09cde81b11e607de46686397cfb5e33700b793e8 /Library
parentd25bdc9f3f3f6547d6c023ed7e192fc5913e9bbc (diff)
downloadstrawberry-os-0e9f2dc57e9df8fbc5a5da6d68d1268278aa4129.tar.gz
strawberry-os-0e9f2dc57e9df8fbc5a5da6d68d1268278aa4129.tar.bz2
strawberry-os-0e9f2dc57e9df8fbc5a5da6d68d1268278aa4129.zip
Fix bug on Linux
Diffstat (limited to 'Library')
-rw-r--r--Library/SDK/Entrypoint.js8
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