mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
update isStringOrNumber
This commit is contained in:
1 parent
6b6fca8b74
commit
6d81287de9
3 files changed
+5
-4
No files matched your search
@@ -248,7 +248,7 @@ class Artplayer extends (0, _emitterDefault.default) {
|
||||
return "development";
|
||||
}
|
||||
static get build() {
|
||||
return "2023-04-18 16:27:09";
|
||||
return "2023-04-18 18:17:53";
|
||||
}
|
||||
static get config() {
|
||||
return 0, _configDefault.default;
|
||||
@@ -3040,7 +3040,7 @@ class Component {
|
||||
$value.innerText = $item.innerText;
|
||||
if (option.onSelect) {
|
||||
const result = await option.onSelect.call(this.art, find, $item, event);
|
||||
if (typeof result === "string" || typeof result === "number") $value.innerHTML = result;
|
||||
if ((0, _dom.isStringOrNumber)(result)) $value.innerHTML = result;
|
||||
}
|
||||
setLeft();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user