Skip to content

Commit

Permalink
indexof instead of contains
Browse files Browse the repository at this point in the history
  • Loading branch information
prolane committed Nov 15, 2018
1 parent 21f4738 commit 8219db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion background/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down

0 comments on commit 8219db0

Please sign in to comment.