-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This plugin is using ES2015 method definition shorthand syntax which is not supported by IE11:
docsify-plugin-codefund/index.js
Lines 17 to 28 in 4438c6c
injectCodeFundContainer() { | |
if (document.getElementById("codefund") === null) { | |
let nav = document.getElementsByClassName('sidebar-nav'); | |
let codefundContainer = document.createElement('div'); | |
codefundContainer.id = 'codefund'; | |
nav[0].insertBefore(codefundContainer, nav[0].firstChild); | |
} | |
if (document.getElementsByClassName('cf-wrapper').length === 0) { | |
window._codefund && window._codefund.serve(); | |
} | |
}, |
Since IE11 is officially support by docsify, docsify plugins should be authored using only ES5 or transpiled from ES6+ to ES5 using a tool like Babel. This plugin is used on docsify.js.org which fails to load properly in IE11 as a result of this issue.
Thanks!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working