Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Autoloader plugin: don't try to load "none" component. Fix #1000
  • Loading branch information
Golmote committed Sep 1, 2016
1 parent 1a86d34 commit f89b0b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion plugins/autoloader/prism-autoloader.js
Expand Up @@ -8,6 +8,8 @@

var lang_data = {};

var ignored_language = 'none';

var config = Prism.plugins.autoloader = {
languages_path: 'components/',
use_minified: true
Expand Down Expand Up @@ -187,7 +189,9 @@

Prism.hooks.add('complete', function (env) {
if (env.element && env.language && !env.grammar) {
registerElement(env.language, env.element);
if (env.language !== ignored_language) {
registerElement(env.language, env.element);
}
}
});

Expand Down
2 changes: 1 addition & 1 deletion plugins/autoloader/prism-autoloader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f89b0b9

Please sign in to comment.