mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 20:44:48 -04:00
!288 support default device-type
Merge pull request !288 from seaside/cherry-pick-1653489842
This commit is contained in:
@@ -389,7 +389,11 @@ function parseDeviceTypeCondition(condition: string, mediaStatus: object, failRe
|
||||
failReason.type = MEDIAERROR.SYNTAX;
|
||||
return false;
|
||||
}
|
||||
return deviceType[1] === mediaStatus['device-type'];
|
||||
if (deviceType[1] === 'default') {
|
||||
return mediaStatus['device-type'] === 'phone';
|
||||
} else {
|
||||
return deviceType[1] === mediaStatus['device-type'];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user