diff --git a/src/App.vue b/src/App.vue index 690e5c5..7ff2825 100644 --- a/src/App.vue +++ b/src/App.vue @@ -52,7 +52,7 @@ - + v{{ version }} v{{ release.name }} @@ -218,7 +218,7 @@ }) }, methods: { - open, + open: open.bind(window), ticker () { this.now = Date.now() }, diff --git a/src/plugins/update.js b/src/plugins/update.js index c985622..df6e7ab 100644 --- a/src/plugins/update.js +++ b/src/plugins/update.js @@ -6,7 +6,7 @@ export default function (version) { const { html_url, name } = data if (name) { const new_version = name.replace(/[^\d.]/, '') - if (name !== new_version) { + if (version !== new_version) { const p_old = version.split('.') const p_new = new_version.split('.')