Migrate site.js to ES6

This commit is contained in:
MrTimscampi 2020-08-14 06:36:46 +02:00 committed by vitorsemeano
parent e558ef80d7
commit 1a635e2f81
6 changed files with 235 additions and 512 deletions

View file

@ -3757,4 +3757,14 @@ class PlaybackManager {
}
}
export default new PlaybackManager();
const playbackManager = new PlayQueueManager();
window.addEventListener('beforeunload', function () {
try {
playbackManager.onAppClose();
} catch (err) {
console.error('error in onAppClose: ' + err);
}
});
export default playbackManager;