Commit e136a6fe authored by nanahira's avatar nanahira

fix

parent 65f94ed6
......@@ -155,7 +155,7 @@ export function DefinePlugin<T>(
const layer = result.result as WebSocketLayer;
ctx.on('dispose', () => layer.close());
} else {
const mayBePromise = result.result;
const mayBePromise = result?.result;
if (mayBePromise instanceof Promise) {
this.__promisesToWaitFor.push(mayBePromise);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment