From 6c6016e31b01d26356388cdf9216f6a07752855b Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Fri, 26 Jan 2024 22:42:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83Player#getStorage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noname/library/element/player.js b/noname/library/element/player.js index f47c6dddc..044bc67b3 100644 --- a/noname/library/element/player.js +++ b/noname/library/element/player.js @@ -6227,7 +6227,7 @@ export class Player extends HTMLDivElement { return value; } getStorage(name, defaultValue = []) { - return this.hasStorage(name) ? this.storage[name] : defaultValue; + return this.storage[name] || defaultValue; } hasStorage(name, value) { if (!(name in this.storage)) return false;