Skip to content

Commit

Permalink
fix: [Bug?] Unable to use QScreen in computed properties due to it be…
Browse files Browse the repository at this point in the history
…ing an Object quasarframework#2399
  • Loading branch information
rstoenescu committed Aug 8, 2018
1 parent e69b1de commit 7f2d703
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default {
lt: {
sm: true,
md: true,
lg: true,
xl: true
},
gt: {},
Expand Down Expand Up @@ -104,13 +105,13 @@ export default {
}
}

Vue.util.defineReactive($q, 'screen', this)

if (fromSSR) {
queues.takeover.push(start)
}
else {
start()
}

Vue.util.defineReactive($q, 'screen', this)
}
}

0 comments on commit 7f2d703

Please sign in to comment.