@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.
|
@@ -3641,7 +3641,9 @@ class WinampTelegramCustomHandler {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
|
|
3643
3643
|
if (typeof localStorage.getItem('app-state') !== "undefined") {
|
|
3644
|
-
this.
|
|
3644
|
+
this.applicationStorage.getItem("app-state", v => {
|
|
3645
|
+
this.loadOptions(JSON.parse(v));
|
|
3646
|
+
}); // this.loadOptions(JSON.parse(localStorage.getItem('app-state')!) as SerializedStateV1);
|
|
3645
3647
|
} else {
|
|
3646
3648
|
try {
|
|
3647
3649
|
this.applicationStorage.getItem("app-state", v => {
|
|
@@ -3654,9 +3656,11 @@ class WinampTelegramCustomHandler {
|
|
|
3654
3656
|
|
|
3655
3657
|
|
|
3656
3658
|
if (emit !== false) {
|
|
3657
|
-
var
|
|
3659
|
+
var _window2, _window2$Telegram;
|
|
3658
3660
|
|
|
3659
|
-
const lastList = (
|
|
3661
|
+
const lastList = this.applicationStorage.getItem("lastlist"); //this.getCookie('lastlist') ??
|
|
3662
|
+
|
|
3663
|
+
console.log(lastList);
|
|
3660
3664
|
|
|
3661
3665
|
if (typeof lastList !== "undefined") {
|
|
3662
3666
|
this.getTrackListFromYandexDisk(lastList);
|
|
@@ -3673,6 +3677,10 @@ class WinampTelegramCustomHandler {
|
|
|
3673
3677
|
this.initializeTelegramWebAppEvents();
|
|
3674
3678
|
}
|
|
3675
3679
|
|
|
3680
|
+
this.webamp.__onStateChange(() => {
|
|
3681
|
+
this.updateAppState();
|
|
3682
|
+
});
|
|
3683
|
+
|
|
3676
3684
|
this.initializeApplicationHandlers();
|
|
3677
3685
|
}
|
|
3678
3686
|
}, 1000);
|
|
@@ -3709,11 +3717,6 @@ class WinampTelegramCustomHandler {
|
|
|
3709
3717
|
open: false
|
|
3710
3718
|
});
|
|
3711
3719
|
const ev = ['ended', 'playing', 'timeupdate', 'fileLoaded', 'waiting', 'stopWaiting'];
|
|
3712
|
-
|
|
3713
|
-
this.webamp.__onStateChange(() => {
|
|
3714
|
-
this.updateAppState();
|
|
3715
|
-
});
|
|
3716
|
-
|
|
3717
3720
|
ev.forEach(ev => this.webamp.media.on(ev, () => {
|
|
3718
3721
|
this.updateAppState();
|
|
3719
3722
|
}));
|