mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-23 14:07:24 +00:00
Fixes for some null-related errors.
This commit is contained in:
parent
1dbd1e375b
commit
291a0373b7
@ -80,7 +80,7 @@ export default {
|
|||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.destroying = false;
|
this.destroying = false;
|
||||||
this.sponsors?.segments.forEach(segment => (segment.skipped = false));
|
this.sponsors?.segments?.forEach(segment => (segment.skipped = false));
|
||||||
this.hotkeysPromise.then(() => {
|
this.hotkeysPromise.then(() => {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.$hotkeys(
|
this.$hotkeys(
|
||||||
@ -606,7 +606,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
markers.style.background = `linear-gradient(${array.join(",")})`;
|
markers?.style.background = `linear-gradient(${array.join(",")})`;
|
||||||
},
|
},
|
||||||
destroy(hotkeys) {
|
destroy(hotkeys) {
|
||||||
if (this.$ui) {
|
if (this.$ui) {
|
||||||
@ -618,8 +618,8 @@ export default {
|
|||||||
this.$player.destroy();
|
this.$player.destroy();
|
||||||
this.$player = undefined;
|
this.$player = undefined;
|
||||||
}
|
}
|
||||||
if (this.$hotkeys && hotkeys) this.$hotkeys.unbind();
|
if (hotkeys) this.$hotkeys?.unbind();
|
||||||
if (this.$refs.container) this.$refs.container.querySelectorAll("div").forEach(node => node.remove());
|
this.$refs.container?.querySelectorAll("div").forEach(node => node.remove());
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
Loading…
Reference in New Issue
Block a user