mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 16:30:13 +00:00
fix: lint MkModPlayer
This commit is contained in:
parent
4856b019ce
commit
386e4f2665
1 changed files with 7 additions and 8 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<div v-else class="mod-player-enabled">
|
<div v-else class="mod-player-enabled">
|
||||||
<div class="pattern-display" @click="togglePattern()">
|
<div class="pattern-display" @click="togglePattern()">
|
||||||
<div class="pattern-hide" v-if="patternHide">
|
<div v-if="patternHide" class="pattern-hide">
|
||||||
<b><i class="ph-eye ph-bold ph-lg"></i> Pattern Hidden</b>
|
<b><i class="ph-eye ph-bold ph-lg"></i> Pattern Hidden</b>
|
||||||
<span>{{ i18n.ts.clickToShow }}</span>
|
<span>{{ i18n.ts.clickToShow }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -166,32 +166,31 @@ function toggleVisible() {
|
||||||
firstFrame.value = true;
|
firstFrame.value = true;
|
||||||
patternHide.value = false;
|
patternHide.value = false;
|
||||||
}
|
}
|
||||||
nextTick(() => {
|
nextTick(() => { stop(hide.value); });
|
||||||
stop(hide.value);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function togglePattern() {
|
function togglePattern() {
|
||||||
patternHide.value = !patternHide.value;
|
patternHide.value = !patternHide.value;
|
||||||
if (!patternHide.value) {
|
if (!patternHide.value) {
|
||||||
if (player.value.getRow() == 0) {
|
if (player.value.getRow() === 0) {
|
||||||
try {
|
try {
|
||||||
player.value.play(buffer);
|
player.value.play(buffer);
|
||||||
display();
|
display();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.warn(e);
|
console.warn(err);
|
||||||
}
|
}
|
||||||
player.value.stop();
|
player.value.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function display() {
|
function display() {
|
||||||
if (!displayCanvas.value) {
|
if (!displayCanvas.value) {
|
||||||
stop();
|
stop();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (patternHide.value) { return; }
|
if (patternHide.value) return;
|
||||||
|
|
||||||
if (firstFrame.value) {
|
if (firstFrame.value) {
|
||||||
firstFrame.value = false;
|
firstFrame.value = false;
|
||||||
|
|
Loading…
Reference in a new issue