Skip to content

Commit

Permalink
TWECACAPP-698 Remove unused getSelectedTextJS String
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-chu committed Jul 6, 2020
1 parent 15a4bd8 commit 32c3f49
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,18 +540,6 @@ final public class InAppWebView extends InputAwareWebView {
"!activeEl.disabled && !activeEl.readOnly;" +
"var isActiveElementEditable = isActiveElementInputEditable || (activeEl != null && activeEl.isContentEditable) || document.designMode === 'on';";

static final String getSelectedTextJS = "(function(){" +
" var txt;" +
" if (window.getSelection) {" +
" txt = window.getSelection().toString();" +
" } else if (window.document.getSelection) {" +
" txt = window.document.getSelection().toString();" +
" } else if (window.document.selection) {" +
" txt = window.document.selection.createRange().text;" +
" }" +
" return txt;" +
"})();";

// android Workaround to hide context menu when selected text is empty
// and the document active element is not an input element.
static final String checkContextMenuShouldBeHiddenJS = "(function(){" +
Expand Down

0 comments on commit 32c3f49

Please # to comment.