Comparing version 3.9.0 to 3.9.1
[English](./CHANGELOG.md) | 简体中文 | ||
#### 3.9.1 (2021-07-27) | ||
- `Fix(Log)` 修正命令行输入框样式。 (PR #437 by @FredZeng) | ||
- `Fix(Storage)` 修复由 `globalThis` 引起的报错。 (issue #438 #439) | ||
- `Chore` 修复由 Svelte 引起的 `const` `let` 报错。 (PR #440 by @dellyoung) | ||
#### 3.9.0 (2021-07-16) | ||
@@ -4,0 +11,0 @@ |
English | [简体中文](./CHANGELOG_CN.md) | ||
#### 3.9.1 (2021-07-27) | ||
- `Fix(Log)` Fix command input style. (PR #437 by @FredZeng) | ||
- `Fix(Storage)` Fix `globalThis` error. (issue #438 #439) | ||
- `Chore` Fix `const` `let` error cause by Svelte. (PR #440 by @dellyoung) | ||
#### 3.9.0 (2021-07-16) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "vconsole", | ||
"version": "3.9.0", | ||
"version": "3.9.1", | ||
"description": "A lightweight, extendable front-end developer tool for mobile web page.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Tencent/vConsole", |
@@ -10,9 +10,10 @@ import { cookiesStorage } from '../../lib/cookiesStorage'; | ||
const storages: IStorageItem[] = []; | ||
const that = globalThis || window; | ||
if (document.cookie !== undefined) { | ||
storages.push({ name: 'cookies', storage: cookiesStorage }); | ||
} | ||
if (globalThis.localStorage) { | ||
if (that.localStorage) { | ||
storages.push({ name: 'localStorage', storage: localStorage }); | ||
} | ||
if (globalThis.sessionStorage) { | ||
if (that.sessionStorage) { | ||
storages.push({ name: 'sessionStorage', storage: sessionStorage }); | ||
@@ -19,0 +20,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
707664
4107