mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
fix: add null check for target in Control and Setting classes
- Added a null check for the target parameter in the check method of the Control class to prevent potential errors when target is undefined. - Implemented a similar null check in the check method of the Setting class for consistency and error handling. - Updated FULLSCREEN_WEB_IN_BODY property in Artplayer to true for enabling fullscreen mode in web environments.
This commit is contained in:
1 parent
714c81e6c3
commit
12d6781bf5
5 files changed
+11
-3
No files matched your search
@@ -95,6 +95,9 @@ export default class Setting extends Component {
|
||||
}
|
||||
|
||||
check(target) {
|
||||
if (!target) {
|
||||
return
|
||||
}
|
||||
target.$parent.tooltip = target.html
|
||||
this.traverse((item) => {
|
||||
item.default = item === target
|
||||
|
||||
Reference in new issue
Block a user