ezuikit-js 0.4.3 → 0.4.4

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.
Files changed (2) hide show
  1. package/ezuikit.js +10 -8
  2. package/package.json +1 -1
package/ezuikit.js CHANGED
@@ -29157,14 +29157,16 @@ class EZUIKitPlayer {
29157
29157
  });
29158
29158
  }
29159
29159
  play(options) {
29160
- if(typeof options.url === 'string') {
29161
- this.url = options.url;
29162
- }
29163
- if(typeof options.accessToken === 'string') {
29164
- this.accessToken = options.accessToken;
29165
- }
29166
- if(this.Theme && (typeof options.url === 'string' || typeof options.accessToken === 'string')) {
29167
- this.Theme.getDeviceInfo();
29160
+ if(options) {
29161
+ if(typeof options.url === 'string') {
29162
+ this.url = options.url;
29163
+ }
29164
+ if(typeof options.accessToken === 'string') {
29165
+ this.accessToken = options.accessToken;
29166
+ }
29167
+ if(this.Theme && (typeof options.url === 'string' || typeof options.accessToken === 'string')) {
29168
+ this.Theme.getDeviceInfo();
29169
+ }
29168
29170
  }
29169
29171
  const promise = new Promise((resolve, reject) => {
29170
29172
  this._getRealUrlPromise(this.accessToken, this.url)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezuikit-js",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "ezuikit javascript for npm",
5
5
  "main": "ezuikit.js",
6
6
  "scripts": {