MCPcopy Index your code
hub / github.com/webodf/ViewerJS / loadScript

Function loadScript

PDFViewerPlugin.js:31–38  ·  view source on GitHub ↗
(path, callback)

Source from the content-addressed store, hash-verified

29 "use strict";
30
31 function loadScript(path, callback) {
32 var script = document.createElement('script');
33 script.async = false;
34 script.src = path;
35 script.type = 'text/javascript';
36 script.onload = callback || script.onload;
37 document.getElementsByTagName('head')[0].appendChild(script);
38 }
39
40 function init(callback) {
41 var pluginCSS;

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected