Merge pull request #284 from SushiPython/main

sponsor skip toast
This commit is contained in:
Sushi 2022-06-01 15:12:44 -06:00 committed by GitHub
commit 3a5ed6f850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,7 @@ export default {
vidTime <= sponsor.segment[1]
) {
console.log("Skipping the sponsor");
this.$youtube.showToast("Skipped sponsor")
vid.currentTime = sponsor.segment[1] + 1;
}
});

View File

@ -78,6 +78,9 @@ const searchModule = {
logger("codeRun", err, true);
callback(err);
});
},
showToast(text) {
Toast.show({ text: text });
}
};