Skip to content

Commit

Permalink
fix: wrong changelog in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Apr 22, 2021
1 parent 5ceddb8 commit a41cf1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 53 deletions.
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion src/renderer/components/ModalSettingsChangelog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</template>

<script>
import { mapGetters } from 'vuex';
import marked from 'marked';
import BaseLoader from '@/components/BaseLoader';
Expand All @@ -31,13 +32,16 @@ export default {
isError: false
};
},
computed: {
...mapGetters({ appVersion: 'application/appVersion' })
},
created () {
this.getChangelog();
},
methods: {
async getChangelog () {
try {
const apiRes = await fetch('https://api.github.com/repos/Fabio286/antares/releases/latest', {
const apiRes = await fetch(`https://api.github.com/repos/Fabio286/antares/releases/tags/v${this.appVersion}`, {
method: 'GET'
});
Expand Down

0 comments on commit a41cf1a

Please sign in to comment.