mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fix sentry crash
This commit is contained in:
parent
0fbeed64d4
commit
eb4cbb1925
1 changed files with 1 additions and 4 deletions
|
@ -129,11 +129,8 @@ function createWindow () {
|
|||
return;
|
||||
};
|
||||
|
||||
args = args || [];
|
||||
args.unshift(win);
|
||||
|
||||
if (Api[cmd]) {
|
||||
Api[cmd].apply(Api, args);
|
||||
Api[cmd].apply(Api, [ win ].concat(args || []));
|
||||
} else {
|
||||
console.error('[Api] method not defined:', cmd);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue