Skip to content

Commit 166078e

Browse files
author
yong.teng
committed
修复 Window、Location 未导出问题
1 parent 3edacdf commit 166078e

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# 更新日志
22

33

4+
## [v4.1.7](https://github.com/buession/buession-prototype/releases/tag/4.1.7)(2025-04-11)
5+
6+
### 🐞 BUG 修复
7+
8+
- 修复 Window、Location 未导出问题
9+
10+
411
## [v4.1.6](https://github.com/buession/buession-prototype/releases/tag/4.1.6)(2025-04-11)
512

613
### ⭐ 新特性

src/window.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ interface ClipboardData {
104104
setData(format: ClipboardDataFormat, content: string): void;
105105
}
106106

107-
export const isMobile = ["Android", "iPhone", "iPod", "Windows Phone", "Mobile", "Coolpad", "mmp", "SmartPhone", "midp", "wap", "xoom", "Symbian", "J2ME", "Blackberry", "Wince"].some((value)=>navigator.userAgent.exists(value));
108-
export const isChrome = /\(KHTML, like Gecko\) Chrome\//.test(navigator.userAgent);
109-
export const isFirefox = navigator.userAgent.exists("Firefox");
110-
export const isMozilla = navigator.userAgent.exists("Mozilla");
111-
export const isEdge = navigator.userAgent.exists("Edge");
112-
export const isMSIE = navigator.userAgent.exists("MSIE") && navigator.userAgent.exists("compatible");
113-
export const isOpera = navigator.userAgent.exists("Opera");
114-
export const isSafari = navigator.userAgent.exists("Safari");
115-
export const isNetscape = /Netscape([\d]*)\/([^\s]+)/i.test(navigator.userAgent);
107+
const isMobile = ["Android", "iPhone", "iPod", "Windows Phone", "Mobile", "Coolpad", "mmp", "SmartPhone", "midp", "wap", "xoom", "Symbian", "J2ME", "Blackberry", "Wince"].some((value)=>navigator.userAgent.exists(value));
108+
const isChrome = /\(KHTML, like Gecko\) Chrome\//.test(navigator.userAgent);
109+
const isFirefox = navigator.userAgent.exists("Firefox");
110+
const isMozilla = navigator.userAgent.exists("Mozilla");
111+
const isEdge = navigator.userAgent.exists("Edge");
112+
const isMSIE = navigator.userAgent.exists("MSIE") && navigator.userAgent.exists("compatible");
113+
const isOpera = navigator.userAgent.exists("Opera");
114+
const isSafari = navigator.userAgent.exists("Safari");
115+
const isNetscape = /Netscape([\d]*)\/([^\s]+)/i.test(navigator.userAgent);
116116

117117
Object.defineProperty(window, "browser", {
118118
value: {

0 commit comments

Comments
 (0)