diff options
author | Nick Coutsos <[email protected]> | 2021-10-16 14:01:34 -0400 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2021-10-16 14:01:34 -0400 |
commit | c92b4e8e8455792c1df0c6f05accb3a9305f1ee2 (patch) | |
tree | 7618e25fd769da168d172211b45b986cd66b0cef /application | |
parent | 7617b7e84d6ae58ea607cb13ed150ee6b485bbe7 (diff) | |
download | keymap-editor-c92b4e8e8455792c1df0c6f05accb3a9305f1ee2.tar.gz keymap-editor-c92b4e8e8455792c1df0c6f05accb3a9305f1ee2.zip |
Initialize github module in loader component
Diffstat (limited to 'application')
-rw-r--r-- | application/components/app.vue | 1 | ||||
-rw-r--r-- | application/main.js | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/application/components/app.vue b/application/components/app.vue index 6aee925..a6d3cb1 100644 --- a/application/components/app.vue +++ b/application/components/app.vue @@ -46,6 +46,7 @@ export default { }, methods: { async loadData() { + await github.init() const loadKeyboardData = async () => { if (config.enableGitHub && github.isGitHubAuthorized()) { return github.fetchLayoutAndKeymap() diff --git a/application/main.js b/application/main.js index 277f193..ed96422 100644 --- a/application/main.js +++ b/application/main.js @@ -4,12 +4,5 @@ import 'xterm/css/xterm.css' import * as Vue from 'vue' import App from './components/app.vue' -import * as github from './github' -async function main() { - await github.init() - - Vue.createApp(App).mount('body') -} - -main() +Vue.createApp(App).mount('body') |