Skip to content

Latest commit

 

History

History
85 lines (47 loc) · 1.42 KB

File metadata and controls

85 lines (47 loc) · 1.42 KB

@hubxu/utils / Exports / bom

Module: bom

Table of contents

Functions

Functions

getSelectedText

getSelectedText(): string

获取选中的文本

Returns

string

Defined in

src/bom/index.ts:4


openCenteredWindow

openCenteredWindow(url, windowName, width, height): void

打开一个居中的窗口

Parameters

Name Type
url string
windowName string
width number
height number

Returns

void

Defined in

src/bom/index.ts:25


prefersDarkColorScheme

prefersDarkColorScheme(): boolean

是否是暗黑模式

Returns

boolean

Defined in

src/bom/index.ts:11


prefersLightColorScheme

prefersLightColorScheme(): boolean

是否是浅色模式

Returns

boolean

Defined in

src/bom/index.ts:18