Skip to content

Commit 2392469

Browse files
committed
fix: define, not assign
1 parent b76c027 commit 2392469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base/plugin/updater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ wrap(() => {
2525
});
2626
setting.on(() => update.refresh());
2727

28-
Object.assign(plugin, 'canUpdate', {
28+
Object.defineProperty(plugin, 'canUpdate', {
2929
get: () => updater && !setting.value() && !update.value(),
3030
});
3131

0 commit comments

Comments
 (0)