Skip to content

Commit

Permalink
fix(core): handle toJSON() in plugin objects (#4823)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jul 12, 2021
1 parent dc279cc commit 0479822
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/runtime.ts
Expand Up @@ -198,6 +198,8 @@ export const createCapacitor = (win: WindowCapacitor): CapacitorInstance => {
// https://github.com/facebook/react/issues/20030
case '$$typeof':
return undefined;
case 'toJSON':
return () => ({});
case 'addListener':
return pluginHeader ? addListenerNative : addListener;
case 'removeListener':
Expand Down

0 comments on commit 0479822

Please sign in to comment.