Skip to content

Commit

Permalink
Merge pull request #19 from pakerwreah/develop
Browse files Browse the repository at this point in the history
Fix update check
  • Loading branch information
pakerwreah authored Oct 11, 2020
2 parents 086d921 + fe1040b commit e8acd23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</v-flex>
<v-flex shrink align-self-center>
<v-fade-transition>
<v-row v-show="current_page === 1" class="mr-2">
<v-row v-show="current_page <= 1" class="mr-2">
<span class="version">
<span :class="{strike: release}">v{{ version }}</span>
<span v-if="release" class="white--text ml-2">v{{ release.name }}</span>
Expand Down Expand Up @@ -218,7 +218,7 @@
})
},
methods: {
open,
open: open.bind(window),
ticker () {
this.now = Date.now()
},
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')

Expand Down

0 comments on commit e8acd23

Please sign in to comment.