Skip to content

window.getSelection().toString() is null #5

@EyreGe

Description

@EyreGe

image

image

screenshot_2018-08-07-13-27-17-507_co anybooks

有时候text为空,确认走了这个判断的里面
"if (window.getSelection) {" +
"txt = window.getSelection().toString();" +
"ttttt = 1;" +
"}

测试机 Redmi 5 Plus, version: 7.1.2

在测试机 Redmi Note 4X(version: 7.0)上还出现了选中效果(有时候!!)会取消不掉的情况:
screenshot_2018-08-07-13-36-44-030_co anybooks

求解。。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions