@exezt-/webamp 1.5.0-0x730 → 1.5.0-0x732
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/built/webamp.bundle.js
CHANGED
|
@@ -7536,7 +7536,9 @@ class WinampTelegramCustomHandler {
|
|
|
7536
7536
|
}
|
|
7537
7537
|
|
|
7538
7538
|
if (typeof localStorage.getItem('app-state') !== "undefined") {
|
|
7539
|
-
this.
|
|
7539
|
+
this.applicationStorage.getItem("app-state", v => {
|
|
7540
|
+
this.loadOptions(JSON.parse(v));
|
|
7541
|
+
}); // this.loadOptions(JSON.parse(localStorage.getItem('app-state')!) as SerializedStateV1);
|
|
7540
7542
|
} else {
|
|
7541
7543
|
try {
|
|
7542
7544
|
this.applicationStorage.getItem("app-state", v => {
|
|
@@ -7549,9 +7551,11 @@ class WinampTelegramCustomHandler {
|
|
|
7549
7551
|
|
|
7550
7552
|
|
|
7551
7553
|
if (emit !== false) {
|
|
7552
|
-
var
|
|
7554
|
+
var _window2, _window2$Telegram;
|
|
7553
7555
|
|
|
7554
|
-
const lastList = (
|
|
7556
|
+
const lastList = this.applicationStorage.getItem("lastlist"); //this.getCookie('lastlist') ??
|
|
7557
|
+
|
|
7558
|
+
console.log(lastList);
|
|
7555
7559
|
|
|
7556
7560
|
if (typeof lastList !== "undefined") {
|
|
7557
7561
|
this.getTrackListFromYandexDisk(lastList);
|
|
@@ -7568,6 +7572,10 @@ class WinampTelegramCustomHandler {
|
|
|
7568
7572
|
this.initializeTelegramWebAppEvents();
|
|
7569
7573
|
}
|
|
7570
7574
|
|
|
7575
|
+
this.webamp.__onStateChange(() => {
|
|
7576
|
+
this.updateAppState();
|
|
7577
|
+
});
|
|
7578
|
+
|
|
7571
7579
|
this.initializeApplicationHandlers();
|
|
7572
7580
|
}
|
|
7573
7581
|
}, 1000);
|
|
@@ -7604,11 +7612,6 @@ class WinampTelegramCustomHandler {
|
|
|
7604
7612
|
open: false
|
|
7605
7613
|
});
|
|
7606
7614
|
const ev = ['ended', 'playing', 'timeupdate', 'fileLoaded', 'waiting', 'stopWaiting'];
|
|
7607
|
-
|
|
7608
|
-
this.webamp.__onStateChange(() => {
|
|
7609
|
-
this.updateAppState();
|
|
7610
|
-
});
|
|
7611
|
-
|
|
7612
7615
|
ev.forEach(ev => this.webamp.media.on(ev, () => {
|
|
7613
7616
|
this.updateAppState();
|
|
7614
7617
|
}));
|