diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-09-20 14:56:03 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-09-20 14:56:03 -0400 |
commit | 2088eba08cec721551bda691aa4a1d7bd2606b2c (patch) | |
tree | 1d45b282d9fc629c4d1a858fca03e93f124f8ba8 /app/index.js | |
parent | e846215f0aa6c32993ea3403340dde1722b8cbc3 (diff) | |
download | betterLibrary-2088eba08cec721551bda691aa4a1d7bd2606b2c.tar.gz betterLibrary-2088eba08cec721551bda691aa4a1d7bd2606b2c.tar.bz2 betterLibrary-2088eba08cec721551bda691aa4a1d7bd2606b2c.zip |
fix app to work with latest spotify version
Diffstat (limited to 'app/index.js')
-rw-r--r-- | app/index.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/app/index.js b/app/index.js deleted file mode 100644 index 4b09a88..0000000 --- a/app/index.js +++ /dev/null @@ -1,45 +0,0 @@ -// this part was mostly copied from an example - -// Grab any variables you need -const react = Spicetify.React; -const reactDOM = Spicetify.ReactDOM; -const { - URI, - React: { useState, useEffect, useCallback }, - Platform: { History }, -} = Spicetify; - -// this is called when the page is open -function render() { - startListener(); //I added this - enableBetterLib(); //And this - return react.createElement(Grid, { title: "Opened in the center pane" }); -} - -//builds components of the page -class Grid extends react.Component { - constructor(props) { - super(props); - Object.assign(this, props); - this.state = { - foo: "bar", //dont know what these do but its working so ill leave them be - data: "etc" - }; - } - - render() { - return react.createElement("section", { - className: "betterLibSection", - }, - react.createElement("div",{ - className: "betterLibBox" - }, - react.createElement("div", { - className: "betterLibText", - }, - react.createElement("h4", null, this.props.title), - ), - ) - ); - } -}
\ No newline at end of file |