🐛 Fix web build
This commit is contained in:
@@ -120,9 +120,11 @@ class ActivityRpcServer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Set up IPC close handler
|
// Set up IPC close handler
|
||||||
_ipcServer!.onSocketClose = (socket) {
|
if (!kIsWeb) {
|
||||||
handlers['close']?.call(socket);
|
(_ipcServer as dynamic).onSocketClose = (socket) {
|
||||||
};
|
handlers['close']?.call(socket);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
await _ipcServer!.start();
|
await _ipcServer!.start();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user