From 32c3f49c9716b36c327b82dfce703ea91dad0084 Mon Sep 17 00:00:00 2001 From: aaronchu Date: Mon, 6 Jul 2020 12:13:23 +0800 Subject: [PATCH] TWECACAPP-698 Remove unused getSelectedTextJS String --- .../InAppWebView/InAppWebView.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java index df0e25d98..2788dbfcd 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/InAppWebView/InAppWebView.java @@ -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(){" +