mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
25 lines
414 B
JavaScript
25 lines
414 B
JavaScript
const { triggerAction } = require("../utils");
|
|
|
|
const CHANNEL = "navigation";
|
|
const ACTIONS = {
|
|
NEXT: "next",
|
|
BACK: "back",
|
|
};
|
|
|
|
function goToNextPage() {
|
|
triggerAction(CHANNEL, ACTIONS.NEXT);
|
|
}
|
|
|
|
function goToPreviousPage() {
|
|
triggerAction(CHANNEL, ACTIONS.BACK);
|
|
}
|
|
|
|
module.exports = {
|
|
CHANNEL: CHANNEL,
|
|
ACTIONS: ACTIONS,
|
|
actions: {
|
|
goToNextPage: goToNextPage,
|
|
goToPreviousPage: goToPreviousPage,
|
|
},
|
|
};
|