]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/baggy/js/autoClose.js
manage assets through npm
[github/wallabag/wallabag.git] / app / Resources / static / themes / baggy / js / autoClose.js
diff --git a/app/Resources/static/themes/baggy/js/autoClose.js b/app/Resources/static/themes/baggy/js/autoClose.js
new file mode 100644 (file)
index 0000000..e9145b7
--- /dev/null
@@ -0,0 +1,6 @@
+$(document).ready(function() {
+       current_url = window.location.href
+       if (current_url.match("&closewin=true")) {
+               window.close();
+       }
+});