]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/baggy/js/autoClose.js
clean & lint stuff
[github/wallabag/wallabag.git] / app / Resources / static / themes / baggy / js / autoClose.js
index e9145b7e2e091b5443fc39b1d9a336a5180b8fdb..b0dafab210651d579c9f6ea2f287788b4e0c3a1b 100644 (file)
@@ -1,6 +1,8 @@
-$(document).ready(function() {
-       current_url = window.location.href
-       if (current_url.match("&closewin=true")) {
-               window.close();
-       }
+var $ = global.jquery = require('jquery');
+
+$(document).ready(function () {
+  var currentUrl = window.location.href;
+  if (currentUrl.match('&closewin=true')) {
+    window.close();
+  }
 });