feat(plugins) allow for styles dynamic loading.

This commit is contained in:
Rick Frank authored and Erik Ziegler committed 2018-09-28 09:14:09 +02:00
1 parent 53f71aa34c
commit 4e17ac39eb
1 file changed
+6
@@ -43,6 +43,12 @@ export class OHIFPlugin {
});
}
if (plugin.styleURLs && plugin.styleURLs.length) {
plugin.styleURLs.forEach(styleURLs => {
this.loadScript(styleURLs, "text/css");
});
}
let scriptURL = plugin.url;
if (plugin.allowCaching === false) {