Orrielel / BetterDiscordAddons

Just a few plugins for BetterDiscord
11 stars 2 forks source link

Error in Better Image Popups and Custom Media Support #1

Closed Mef45 closed 6 years ago

Mef45 commented 6 years ago
[BetterDiscord] Unable to fire observer for Better Image Popups.
Error: Cannot read property 'classList' of null
TypeError: Cannot read property 'classList' of null
    at BetterImagePopups.observer (<anonymous>:39:32)
    at PluginModule.rawObserver (https://cdn.rawgit.com/rauenzi/BetterDiscordApp/089741a05df97c1353716e5aab003bf0d9c3c13f/js/main.min.js:52:17721)
    at https://cdn.rawgit.com/rauenzi/BetterDiscordApp/089741a05df97c1353716e5aab003bf0d9c3c13f/js/main.min.js:1:8708
    at Array.forEach (native)
    at MutationObserver.<anonymous> (https://cdn.rawgit.com/rauenzi/BetterDiscordApp/089741a05df97c1353716e5aab003bf0d9c3c13f/js/main.min.js:1:8638)
[BetterDiscord] Unable to fire observer for Custom Media Support.
Error: Cannot read property 'classList' of undefined
TypeError: Cannot read property 'classList' of undefined
    at CustomMediaSupport.observer (<anonymous>:676:16)
    at PluginModule.rawObserver (https://cdn.rawgit.com/rauenzi/BetterDiscordApp/089741a05df97c1353716e5aab003bf0d9c3c13f/js/main.min.js:52:17721)
    at https://cdn.rawgit.com/rauenzi/BetterDiscordApp/089741a05df97c1353716e5aab003bf0d9c3c13f/js/main.min.js:1:8708
    at Array.forEach (native)
    at MutationObserver.<anonymous> (https://cdn.rawgit.com/rauenzi/BetterDiscordApp/089741a05df97c1353716e5aab003bf0d9c3c13f/js/main.min.js:1:8638)
Orrielel commented 6 years ago

My bad for responding after 4 days;

I presume this happens when you're previewing an image?

Orrielel commented 6 years ago

Should be fixed now :ok_hand:

Also, do mind that CustomMedia has the BetterImagePopups feature included. Don't think it'll break completely with them both running, but it might cause some funky results.