diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-12-11 16:24:48 -0500 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-12-11 16:24:48 -0500 |
commit | 85fca414abb4bcd46c240eee8aaa0826670b9a65 (patch) | |
tree | f01339fd705e60153c4acc77b58113bf93c14170 /CustomApps | |
parent | 2e7409e274c22f14b943e57e1d4170f6d3b0ad71 (diff) | |
download | betterLibrary-85fca414abb4bcd46c240eee8aaa0826670b9a65.tar.gz betterLibrary-85fca414abb4bcd46c240eee8aaa0826670b9a65.tar.bz2 betterLibrary-85fca414abb4bcd46c240eee8aaa0826670b9a65.zip |
Rename a few things
Diffstat (limited to 'CustomApps')
-rw-r--r-- | CustomApps/betterLibrary/betterlibrary.js | 3 | ||||
-rw-r--r-- | CustomApps/betterLibrary/index.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CustomApps/betterLibrary/betterlibrary.js b/CustomApps/betterLibrary/betterlibrary.js index 6dad487..1469609 100644 --- a/CustomApps/betterLibrary/betterlibrary.js +++ b/CustomApps/betterLibrary/betterlibrary.js @@ -9,8 +9,9 @@ var lastViewIcons; //items-view 1=icons 2=list var lastViewCompact; //library-row-mode 1=compact 2=normal // Disables betterlibrary when the pages is left -function startListener() { +function startBetterLibListener() { Spicetify.Platform.History.listen((location) => { + console.log("betterlib listener called") if (location.pathname != '/betterlibrary' && betterLibIsEnabled) disableBetterLib(); }); diff --git a/CustomApps/betterLibrary/index.js b/CustomApps/betterLibrary/index.js index 7d0001b..546710f 100644 --- a/CustomApps/betterLibrary/index.js +++ b/CustomApps/betterLibrary/index.js @@ -11,7 +11,7 @@ const { // this is called when the page is open function render() { - startListener(); //I added this + startBetterLibListener(); //I added this enableBetterLib(); //And this return react.createElement(Grid, { title: "Open in the main view" }); } |