diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-03-01 10:33:06 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-01 20:28:33 +0300 |
commit | 2d8966f7f521c3d5eae47ff5f1cbc13d37cfc185 (patch) | |
tree | e0e4826a6b9f7c5d0985cdb9755d367cfc654baa /app/assets/javascripts/blob/balsamiq_viewer.js | |
parent | 52e133d17627396f29c1875b972534eaba4a837e (diff) |
migrate balsamiq_viewer to dynamic import
Diffstat (limited to 'app/assets/javascripts/blob/balsamiq_viewer.js')
-rw-r--r-- | app/assets/javascripts/blob/balsamiq_viewer.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/blob/balsamiq_viewer.js b/app/assets/javascripts/blob/balsamiq_viewer.js index 062577af385..06ef86ecb77 100644 --- a/app/assets/javascripts/blob/balsamiq_viewer.js +++ b/app/assets/javascripts/blob/balsamiq_viewer.js @@ -7,7 +7,7 @@ function onError() { return flash; } -function loadBalsamiqFile() { +export default function loadBalsamiqFile() { const viewer = document.getElementById('js-balsamiq-viewer'); if (!(viewer instanceof Element)) return; @@ -17,5 +17,3 @@ function loadBalsamiqFile() { const balsamiqViewer = new BalsamiqViewer(viewer); balsamiqViewer.loadFile(endpoint).catch(onError); } - -$(loadBalsamiqFile); |