@exezt-/webamp 1.5.0-0x725 → 1.5.0-0x727
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.
|
@@ -3436,13 +3436,13 @@ module.exports = {
|
|
|
3436
3436
|
|
|
3437
3437
|
class WinampTelegramCustomHandler {
|
|
3438
3438
|
constructor(emit, options) {
|
|
3439
|
-
var _window
|
|
3439
|
+
var _window, _window$Telegram;
|
|
3440
3440
|
|
|
3441
3441
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "webamp", void 0);
|
|
3442
3442
|
|
|
3443
3443
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxFileSize", 0x1400000);
|
|
3444
3444
|
|
|
3445
|
-
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "applicationStorage", (_window
|
|
3445
|
+
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "applicationStorage", (_window = window) === null || _window === void 0 ? void 0 : (_window$Telegram = _window.Telegram) === null || _window$Telegram === void 0 ? void 0 : _window$Telegram.WebApp.DeviceStorage);
|
|
3446
3446
|
|
|
3447
3447
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "telegram", void 0);
|
|
3448
3448
|
|
|
@@ -3563,6 +3563,7 @@ class WinampTelegramCustomHandler {
|
|
|
3563
3563
|
});
|
|
3564
3564
|
|
|
3565
3565
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "saveLastPlaylist", playlistLink => {
|
|
3566
|
+
this.applicationStorage.setItem("lastlist", playlistLink);
|
|
3566
3567
|
document.cookie = `lastlist=${playlistLink}; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT; domain=win-amp.ru; secure`;
|
|
3567
3568
|
});
|
|
3568
3569
|
|
|
@@ -3646,14 +3647,16 @@ class WinampTelegramCustomHandler {
|
|
|
3646
3647
|
typeof this.applicationStorage.getItem("app-state", v => {
|
|
3647
3648
|
this.loadOptions(JSON.parse(v));
|
|
3648
3649
|
});
|
|
3649
|
-
} catch (e) {
|
|
3650
|
+
} catch (e) {
|
|
3651
|
+
console.log(e);
|
|
3652
|
+
}
|
|
3650
3653
|
} // emit
|
|
3651
3654
|
|
|
3652
3655
|
|
|
3653
3656
|
if (emit !== false) {
|
|
3654
|
-
var _window2, _window2$Telegram;
|
|
3657
|
+
var _ref, _this$getCookie, _window2, _window2$Telegram;
|
|
3655
3658
|
|
|
3656
|
-
const lastList = this.getCookie('lastlist');
|
|
3659
|
+
const lastList = (_ref = (_this$getCookie = this.getCookie('lastlist')) !== null && _this$getCookie !== void 0 ? _this$getCookie : this.applicationStorage.getItem("lastlist")) !== null && _ref !== void 0 ? _ref : undefined;
|
|
3657
3660
|
|
|
3658
3661
|
if (typeof lastList !== "undefined") {
|
|
3659
3662
|
this.getTrackListFromYandexDisk(lastList);
|