@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.
package/built/webamp.bundle.js
CHANGED
|
@@ -7331,13 +7331,13 @@ if (typeof Object.create === 'function') {
|
|
|
7331
7331
|
|
|
7332
7332
|
class WinampTelegramCustomHandler {
|
|
7333
7333
|
constructor(emit, options) {
|
|
7334
|
-
var _window
|
|
7334
|
+
var _window, _window$Telegram;
|
|
7335
7335
|
|
|
7336
7336
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "webamp", void 0);
|
|
7337
7337
|
|
|
7338
7338
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxFileSize", 0x1400000);
|
|
7339
7339
|
|
|
7340
|
-
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "applicationStorage", (_window
|
|
7340
|
+
_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);
|
|
7341
7341
|
|
|
7342
7342
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "telegram", void 0);
|
|
7343
7343
|
|
|
@@ -7458,6 +7458,7 @@ class WinampTelegramCustomHandler {
|
|
|
7458
7458
|
});
|
|
7459
7459
|
|
|
7460
7460
|
_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "saveLastPlaylist", playlistLink => {
|
|
7461
|
+
this.applicationStorage.setItem("lastlist", playlistLink);
|
|
7461
7462
|
document.cookie = `lastlist=${playlistLink}; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT; domain=win-amp.ru; secure`;
|
|
7462
7463
|
});
|
|
7463
7464
|
|
|
@@ -7541,14 +7542,16 @@ class WinampTelegramCustomHandler {
|
|
|
7541
7542
|
typeof this.applicationStorage.getItem("app-state", v => {
|
|
7542
7543
|
this.loadOptions(JSON.parse(v));
|
|
7543
7544
|
});
|
|
7544
|
-
} catch (e) {
|
|
7545
|
+
} catch (e) {
|
|
7546
|
+
console.log(e);
|
|
7547
|
+
}
|
|
7545
7548
|
} // emit
|
|
7546
7549
|
|
|
7547
7550
|
|
|
7548
7551
|
if (emit !== false) {
|
|
7549
|
-
var _window2, _window2$Telegram;
|
|
7552
|
+
var _ref, _this$getCookie, _window2, _window2$Telegram;
|
|
7550
7553
|
|
|
7551
|
-
const lastList = this.getCookie('lastlist');
|
|
7554
|
+
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;
|
|
7552
7555
|
|
|
7553
7556
|
if (typeof lastList !== "undefined") {
|
|
7554
7557
|
this.getTrackListFromYandexDisk(lastList);
|