mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 03:03:25 +02:00
Fix bug
This commit is contained in:
parent
be33581642
commit
89d35c2e63
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ export default Vue.extend({
|
||||||
if (document.hidden) return;
|
if (document.hidden) return;
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
if (this.$refs.icon == null) return;
|
||||||
|
|
||||||
const rect = this.$refs.icon.$el.getBoundingClientRect();
|
const rect = this.$refs.icon.$el.getBoundingClientRect();
|
||||||
|
|
||||||
const x = rect.left;
|
const x = rect.left;
|
||||||
|
|
Loading…
Reference in a new issue