Jonas Jenwald 07d610615c Move, and modernize, Util.loadScript from src/shared/util.js to src/display/dom_utils.js
Not only is the `Util.loadScript` helper function unused on the Worker side, even trying to use it there would throw an Error (since `document` isn't defined/available in Workers).
Hence this helper function is moved, and its code modernized slightly by having it return a Promise rather than needing a callback function.

Finally, to reduced code duplication, the "new" loadScript function is exported and used in the viewer.
2018-06-07 13:52:40 +02:00
..
2018-05-14 23:10:32 -04:00
2018-04-01 23:20:41 +02:00
2018-05-14 23:10:32 -04:00
2018-05-14 23:10:32 -04:00
2018-05-14 23:10:32 -04:00
2018-05-14 23:10:32 -04:00
2018-05-14 23:10:32 -04:00