summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.idea/vcs.xml1
-rw-r--r--Library/SDK/Entrypoint.js8
2 files changed, 9 insertions, 0 deletions
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index aece699..de1cec7 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/Library/SDK" vcs="Git" />
</component>
</project> \ No newline at end of file
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