fix popup
This commit is contained in:
parent
571ac92cd3
commit
d102a8cd7d
@ -30,8 +30,6 @@
|
|||||||
<QsElement :selector="qse" :key="qse" />
|
<QsElement :selector="qse" :key="qse" />
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class="label">
|
<div class="label">
|
||||||
@ -51,11 +49,11 @@
|
|||||||
<a
|
<a
|
||||||
v-if="playerByNodeIndex"
|
v-if="playerByNodeIndex"
|
||||||
@click="toggleByNodeIndex"
|
@click="toggleByNodeIndex"
|
||||||
>(show advanced options)</a>
|
>(use advanced options)</a>
|
||||||
<a
|
<a
|
||||||
v-if="!playerByNodeIndex"
|
v-if="!playerByNodeIndex"
|
||||||
@click="toggleByNodeIndex"
|
@click="toggleByNodeIndex"
|
||||||
>(hide advanced options)</a>
|
>(use basic options)</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -256,19 +254,19 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
try {
|
try {
|
||||||
this.videoManualQs = this.settings.active.sites[this.site].DOM.video.manual || this.videoManualQs;
|
this.videoManualQs = this.settings.active.sites[this.site]?.DOM?.video?.manual ?? this.videoManualQs;
|
||||||
this.videoQs = this.settings.active.sites[this.site].DOM.video.querySelectors;
|
this.videoQs = this.settings.active.sites[this.site]?.DOM?.video?.querySelectors;
|
||||||
this.videoCss = this.settings.active.sites[this.site].DOM.video.additionalCss;
|
this.videoCss = this.settings.active.sites[this.site]?.DOM?.video?.additionalCss;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// that's here just in case relevant settings for this site don't exist yet
|
// that's here just in case relevant settings for this site don't exist yet
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.playerManualQs = this.settings.active.sites[this.site].DOM.player.manual || this.playerManualQs;
|
this.playerManualQs = this.settings.active.sites[this.site]?.DOM?.player?.manual ?? this.playerManualQs;
|
||||||
this.playerQs = this.settings.active.sites[this.site].DOM.player.querySelectors;
|
this.playerQs = this.settings.active.sites[this.site]?.DOM?.player?.querySelectors;
|
||||||
this.playerByNodeIndex = this.settings.active.sites[this.site].DOM.player.useRelativeAncestor || this.playerByNodeIndex;
|
this.playerByNodeIndex = this.settings.active.sites[this.site]?.DOM?.player?.useRelativeAncestor ?? this.playerByNodeIndex;
|
||||||
this.playerParentNodeIndex = this.settings.active.sites[this.site].DOM.player.videoAncestor;
|
this.playerParentNodeIndex = this.settings.active.sites[this.site]?.DOM?.player?.videoAncestor;
|
||||||
this.usePlayerAr = this.settings.active.sites[this.site].usePlayerArInFullscreen;
|
this.usePlayerAr = this.settings.active.sites[this.site]?.usePlayerArInFullscreen;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// that's here just in case relevant settings for this site don't exist yet
|
// that's here just in case relevant settings for this site don't exist yet
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user