mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
Fix loading wrong source if memorized framework demo is not given
This commit is contained in:
parent
a55aa5fd17
commit
3c1f04bfe7
@ -232,7 +232,7 @@ export default {
|
||||
|
||||
mounted() {
|
||||
// TODO: load language from url params
|
||||
const intitialTab = localStorage.tab ? localStorage.tab : this.sortedTabs[0]?.name
|
||||
const intitialTab = localStorage.tab && this.sources[localStorage.tab] ? localStorage.tab : this.sortedTabs[0]?.name
|
||||
this.setTab(intitialTab)
|
||||
|
||||
window.document.addEventListener('editor', this.onEditor, false)
|
||||
|
Loading…
Reference in New Issue
Block a user