fix: stubs
This commit is contained in:
parent
70132c838a
commit
0dd423944f
|
@ -1,10 +1,14 @@
|
|||
const Proton_ = 'undefined' !== typeof window ? require('three.proton.js') : class {
|
||||
// Fake for server.
|
||||
class FakeProton {
|
||||
|
||||
static BaseRender() {
|
||||
return class {};
|
||||
}
|
||||
addEmitter() {}
|
||||
|
||||
};
|
||||
update() {}
|
||||
|
||||
}
|
||||
FakeProton.BaseRender = class {};
|
||||
FakeProton.Emitter = class {};
|
||||
const Proton_ = 'undefined' !== typeof window ? require('three.proton.js') : FakeProton;
|
||||
|
||||
export class Proton extends Proton_ {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user