Skip to content

Commit

Permalink
fix: remove openURL from quasar
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Apr 16, 2020
1 parent 4543635 commit 8427029
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/components/views/OKatexBlockView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
</template>

<script>
import { openURL } from 'quasar'
import { openUrl } from 'src/utils/shared'
// Code Mirror
import { codemirror } from 'vue-codemirror'
import 'codemirror/addon/edit/continuelist'
Expand Down Expand Up @@ -171,7 +172,7 @@ export default {
}
},
onHelp () {
openURL('https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference')
openUrl('https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference')
}
},
computed: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/OKatexInlineView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<script>
import { openURL } from 'quasar'
import { openUrl } from 'src/utils/shared'
// Code Mirror
import { codemirror } from 'vue-codemirror'
import 'codemirror/addon/edit/continuelist'
Expand Down Expand Up @@ -106,7 +106,7 @@ export default {
onSelectTemplate (item) {
},
onHelp () {
openURL('https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference')
openUrl('https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference')
}
},
computed: {
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { version } from '../package.json'
import Lang from 'src/lang'
import QuasarTiptap from 'src/components/QuasarTiptap'

export const $o = {
version,
config: {}
}

Expand Down
4 changes: 4 additions & 0 deletions src/utils/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ export function highlightColor (rgb) {

return color
}

export function openUrl (url) {
window.open(url, '_blank')
}

0 comments on commit 8427029

Please sign in to comment.