Closed StafDehat closed 4 years ago
Issue https://github.com/sandoche/Darkmode.js/issues/37 is occurring because the showWidget() attempts to navigate the DOM tree before the DOM tree has been rendered by the browser. This line: https://github.com/sandoche/Darkmode.js/blob/master/src/darkmode.js#L140
If showWidget() is executed directly within Githubissues.
Issue https://github.com/sandoche/Darkmode.js/issues/37 is occurring because the showWidget() attempts to navigate the DOM tree before the DOM tree has been rendered by the browser. This line: https://github.com/sandoche/Darkmode.js/blob/master/src/darkmode.js#L140
If showWidget() is executed directly within Githubissues.