1
0
Fork 0
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:
Andrew Simachev 2023-01-31 11:17:43 +03:00
parent 0fbeed64d4
commit eb4cbb1925

View file

@ -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);
};