We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73bf1a9 commit 465b3c3Copy full SHA for 465b3c3
lib/plugin.js
@@ -21,7 +21,8 @@ function Plugin(id, name, ver, desc, deps) {
21
22
this.enabled = true;
23
this.deleted = false;
24
- this.missing = (ver === 'missing');
+ this.missing = (this.ver === 'missing');
25
+ this.builtin = (this.ver === 'default');
26
27
// only need deps for current platform
28
this.deps = _.chain(deps || [])
@@ -93,10 +94,15 @@ Plugin.init = function(head) {
93
94
95
p.file = f.file;
96
p.enabled = stats[p.name];
-// not saved before? enable it by default
97
+
98
if (!(p.name in stats)) {
- log.trace('new plugin, enable by default');
99
- p.enabled = true;
+ if (p.builtin) {
100
+ log.trace('new builtin plugin, enable by default');
101
+ p.enabled = true;
102
+ } else {
103
+ log.trace('new 3rd party plugin, disable by default');
104
+ p.enabled = false;
105
+ }
106
}
107
installed.push(p);
108
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments