Skip to content

Breaks IE11 (which is supported by docsify v4) #6

Closed
@jhildenbiddle

Description

@jhildenbiddle

This plugin is using ES2015 method definition shorthand syntax which is not supported by IE11:

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

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions