Initial project import
This commit is contained in:
18
node_modules/three-stdlib/_polyfill/LoaderUtils.js
generated
vendored
Normal file
18
node_modules/three-stdlib/_polyfill/LoaderUtils.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
function decodeText(array) {
|
||||
if (typeof TextDecoder !== "undefined") {
|
||||
return new TextDecoder().decode(array);
|
||||
}
|
||||
let s = "";
|
||||
for (let i = 0, il = array.length; i < il; i++) {
|
||||
s += String.fromCharCode(array[i]);
|
||||
}
|
||||
try {
|
||||
return decodeURIComponent(escape(s));
|
||||
} catch (e) {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
export {
|
||||
decodeText
|
||||
};
|
||||
//# sourceMappingURL=LoaderUtils.js.map
|
||||
Reference in New Issue
Block a user