Files

10 lines
313 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const env = require('./utils/spine-env.js')
App({
onLaunch() {
// Spine 的 ManagedWebGLRenderingContext 内部会判断 `x instanceof WebGLRenderingContext`,
// 小程序若没有这个全局构造器会直接抛 ReferenceError,这里提前保证它被声明。
env.installWebGLShim()
},
})