You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.
I recognized my browser console being polluted by JS errors when I changed from light to dark theme, back and forth. Error in the console is: "Uncaught TypeError: window.REMARK42.changeTheme is not a function". It looks like you want to switch to a light/dark theme at Remark42 comment solution as well. But I do not use it.
I was able to hotfix this with a custom script that defines an empty function and mimics Remark42:
window.REMARK42={changeTheme: function(anything){// do nothing}}
Expected behavior
No JS errors when there is no Remark42 used and I click on 'change to the light/dark theme'.
Describe the bug
I recognized my browser console being polluted by JS errors when I changed from light to dark theme, back and forth. Error in the console is:
"Uncaught TypeError: window.REMARK42.changeTheme is not a function"
. It looks like you want to switch to a light/dark theme at Remark42 comment solution as well. But I do not use it.I was able to hotfix this with a custom script that defines an empty function and mimics Remark42:
Expected behavior
No JS errors when there is no Remark42 used and I click on 'change to the light/dark theme'.
Build Environment
Preview Environment
The text was updated successfully, but these errors were encountered: