diff options
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r-- | public/javascripts/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js index 98a54bd..d0f3280 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -101,7 +101,10 @@ inputNode.addEventListener('click', function () { }) inputNode.addEventListener('blur', function () { - inputNode.selectionStart = inputNode.selectionEnd = -1 + const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) + if (!isSafari) { + inputNode.selectionStart = inputNode.selectionEnd = -1 + } }) searchNode.addEventListener('blur', function (e) { |