Skip to content

Commit 71f1c1e

Browse files
authored
Update index.html
Disable text selection after conversion on mobile
1 parent 64fff1e commit 71f1c1e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,12 @@ <h1>Lithium Ebook Highlighted Text Extractor</h1>
151151
}
152152

153153
function selectField(fieldId) {
154-
let field = document.getElementById(fieldId);
155-
field.select();
156-
field.setSelectionRange(0, 999999); /* For mobile devices */
154+
//desktop only
155+
if (typeof window.orientation == 'undefined') {
156+
let field = document.getElementById(fieldId);
157+
field.select();
158+
field.setSelectionRange(0, 999999);
159+
}
157160
}
158161

159162
function addColorDropdownItem(changeColor, colorItem) {

0 commit comments

Comments
 (0)