From 8219db088b9759e22dd612e9f1042261e42b1e37 Mon Sep 17 00:00:00 2001 From: prolane Date: Thu, 15 Nov 2018 21:30:21 +0100 Subject: [PATCH] indexof instead of contains --- background/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/script.js b/background/script.js index efdfc30..83e3bdd 100644 --- a/background/script.js +++ b/background/script.js @@ -104,7 +104,7 @@ function onBeforeRequestEvent(details) { } // Change newline sequence when client is on Windows - if (navigator.userAgent.contains('Windows')) { + if (navigator.userAgent.indexOf('Windows') !== -1) { LF = '\r\n' }