le-jeu / iitc-plugins

Some IITC plugins (builds are available on the website or in `dist` branch)
https://le-jeu.github.io/
BSD 2-Clause "Simplified" License
17 stars 6 forks source link

player-inventory.js:1077 Uncaught TypeError: window.makePermalink is not a function #6

Closed Charles-Jones-Unicon closed 1 year ago

Charles-Jones-Unicon commented 1 year ago

I get the following error when I try to use the Player Inventory script:

player-inventory.js:1077 Uncaught TypeError: window.makePermalink is not a function at PortalKeyLink (player-inventory.js:1077:18) at jsx (player-inventory.js:733:45) at player-inventory.js:1099:17 at Array.map () at KeysTable (player-inventory.js:1097:20) at jsx (player-inventory.js:733:45) at InventoryTables (player-inventory.js:1189:19) at jsx (player-inventory.js:733:45) at buildInventoryHTML (player-inventory.js:1424:21) at displayInventory (player-inventory.js:1447:21)

le-jeu commented 1 year ago

That's weird since window.makePermalink is a function from IITC. Can you provide the version of:

Charles-Jones-Unicon commented 1 year ago

That's weird since window.makePermalink is a function from IITC.

That was it! I was running an old version of IITC (0.26)! Plugin is working fine now. Thank you for your work!