]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - assets/common/js/picwall.js
Webpack / Rewrite all JS to ES6 Syntax
[github/shaarli/Shaarli.git] / assets / common / js / picwall.js
diff --git a/assets/common/js/picwall.js b/assets/common/js/picwall.js
new file mode 100644 (file)
index 0000000..87a93fc
--- /dev/null
@@ -0,0 +1,10 @@
+import Blazy from 'blazy';
+
+(() => {
+  const picwall = document.getElementById('picwall_container');
+  if (picwall != null) {
+    // Suppress ESLint error because that's how bLazy works
+    /* eslint-disable no-new */
+    new Blazy();
+  }
+})();