diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-24 18:30:30 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-03-26 19:29:20 +0200 |
commit | d42da5435024b4270d5abac11e6fcfa38354f3e9 (patch) | |
tree | cfd340e25ab7e1b88fe943541ce4f882a315617b /assets/common | |
parent | d78c23e00d3007c3fee8c3603acac00efc1ce14e (diff) | |
download | Shaarli-d42da5435024b4270d5abac11e6fcfa38354f3e9.tar.gz Shaarli-d42da5435024b4270d5abac11e6fcfa38354f3e9.tar.zst Shaarli-d42da5435024b4270d5abac11e6fcfa38354f3e9.zip |
Webpack / Rewrite all JS to ES6 Syntax
Diffstat (limited to 'assets/common')
-rw-r--r-- | assets/common/js/picwall.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/common/js/picwall.js b/assets/common/js/picwall.js new file mode 100644 index 00000000..87a93fc3 --- /dev/null +++ b/assets/common/js/picwall.js | |||
@@ -0,0 +1,10 @@ | |||
1 | import Blazy from 'blazy'; | ||
2 | |||
3 | (() => { | ||
4 | const picwall = document.getElementById('picwall_container'); | ||
5 | if (picwall != null) { | ||
6 | // Suppress ESLint error because that's how bLazy works | ||
7 | /* eslint-disable no-new */ | ||
8 | new Blazy(); | ||
9 | } | ||
10 | })(); | ||