|
@@ -153,17 +153,17 @@ module INSPECTOR {
|
|
|
public static LoadScript() {
|
|
|
BABYLON.Tools.LoadFile("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js", (elem) => {
|
|
|
let script = Helpers.CreateElement('script', '', Inspector.DOCUMENT.body);
|
|
|
- script.textContent = elem;
|
|
|
+ script.textContent = elem as string;
|
|
|
|
|
|
// Load glsl detection
|
|
|
BABYLON.Tools.LoadFile("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/languages/glsl.min.js", (elem) => {
|
|
|
let script = Helpers.CreateElement('script', '', Inspector.DOCUMENT.body);
|
|
|
- script.textContent = elem;
|
|
|
+ script.textContent = elem as string;
|
|
|
|
|
|
// Load css style
|
|
|
BABYLON.Tools.LoadFile("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/zenburn.min.css", (elem) => {
|
|
|
let style = Helpers.CreateElement('style', '', Inspector.DOCUMENT.body);
|
|
|
- style.textContent = elem;
|
|
|
+ style.textContent = elem as string;
|
|
|
});
|
|
|
}, undefined, undefined, undefined, () => {
|
|
|
console.log("erreur");
|