diff rakuten-books-direct-search.user.js @ 85:9c8cde985caf

Update standard and fix
author nanaya <me@nanaya.pro>
date Thu, 15 Apr 2021 15:01:22 +0900
parents 86da34e62d29
children 2c4470b73ad9
line wrap: on
line diff
--- a/rakuten-books-direct-search.user.js	Thu Apr 15 14:56:23 2021 +0900
+++ b/rakuten-books-direct-search.user.js	Thu Apr 15 15:01:22 2021 +0900
@@ -16,11 +16,11 @@
 ;(function () {
   'use strict'
 
-  var $ = jQuery
-  var $form = $("form[name='srchFrm']")
+  const $ = jQuery
+  const $form = $("form[name='srchFrm']")
 
   if (!$form.length) { return }
 
-  var searchUrl = $form.find("input[name='R2']").attr('value')
+  const searchUrl = $form.find("input[name='R2']").attr('value')
   $form.attr('action', searchUrl)
 }).call()