##// END OF EJS Templates
Fixes in WidgetContex, added _Container.addChild support
Fixes in WidgetContex, added _Container.addChild support

File last commit:

r36:a1a1ef050ecc 1.0.0-rc17 default
r38:5c6c7e16919c v1.0.0-rc18 default
Show More
css.ts
18 lines | 445 B | video/mp2t | TypeScriptLexer
import inject from "./dom-inject";
interface OnLoad {
(result?: any): void;
error(err: any): void;
}
const plugin = {
load: (id: string, require: Require, cb: OnLoad, config: { isBuild?: boolean }) => {
if (config.isBuild) {
cb();
} else {
const url = require.toUrl(id);
inject.injectStylesheet(url).then(() => cb({ url }), e => cb.error(e));
}
}
};
export = plugin;