diff options
author | 2019-03-16 23:56:27 +0300 | |
---|---|---|
committer | 2019-03-16 23:56:27 +0300 | |
commit | 06105f76dbfa3b65e63ed06f9c4d5107bd49ed88 (patch) | |
tree | 5702c01cec9688039d891f4a711878706101c1c5 /src/main/assets | |
parent | 3ea4cd1942fa4e763034da11c5fa429407b67829 (diff) | |
parent | a49105285d0d7719d7f222a507af2d5ac5b4bdb1 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/main/assets')
-rw-r--r-- | src/main/assets/embed.js | 4 | ||||
-rw-r--r-- | src/main/assets/scripts.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/assets/embed.js b/src/main/assets/embed.js index d4cbab8e..3b8946bf 100644 --- a/src/main/assets/embed.js +++ b/src/main/assets/embed.js @@ -72,8 +72,8 @@ function makeIframe(src, w, h, scrolling='no') { } function makeResizableToRatio(element, ratio) { - element.dataset['ratio'] = ratio; - makeResizable(element, w => w * element.dataset['ratio']); + element.setAttribute('data-ratio', ratio); + makeResizable(element, w => w * element.getAttribute('data-ratio')); } // calcHeight :: Number -> Number -- calculate element height for a given width diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js index f90fe2c5..e7396c31 100644 --- a/src/main/assets/scripts.js +++ b/src/main/assets/scripts.js @@ -1,4 +1,4 @@ -require('element-closest'); +require('element-closest/browser'); require('classlist.js'); require('url-polyfill'); require('formdata-polyfill'); |