@alicloud/console-os-browser-vm 1.4.37 → 1.4.38

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.
package/es/Location.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import _createClass from "@babel/runtime/helpers/esm/createClass";
2
2
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
3
  function isAboutBlank(loc) {
4
- return loc && loc.href.startsWith('about:blank');
4
+ return loc && loc.href && loc.href.startsWith('about:blank');
5
5
  }
6
6
  var Location = /*#__PURE__*/_createClass(function Location(location) {
7
7
  _classCallCheck(this, Location);
package/lib/Location.js CHANGED
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  function isAboutBlank(loc) {
11
- return loc && loc.href.startsWith('about:blank');
11
+ return loc && loc.href && loc.href.startsWith('about:blank');
12
12
  }
13
13
  var Location = /*#__PURE__*/(0, _createClass2.default)(function Location(location) {
14
14
  (0, _classCallCheck2.default)(this, Location);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/console-os-browser-vm",
3
- "version": "1.4.37",
3
+ "version": "1.4.38",
4
4
  "description": "browser virtual machine",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",