Skip to content

Commit

Permalink
fix: call openURL inside of ObjC.schedule
Browse files Browse the repository at this point in the history
Running into an issue with using "app" method https://github.com/frid…
  • Loading branch information
NSEcho committed Jan 5, 2024
2 parents d22910f + bcf229f commit bdb0ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ rpc.exports = {
delegate.application_openURL_options_(app, ur, opts);
break;
case "app":
ObjC.schedule(ObjC.mainQueue, () => {
app.openURL_(ur);
});
break;
case "scene_activity":
activity.setWebPageURL_(ur);
Expand All @@ -102,4 +104,4 @@ rpc.exports = {
return "method not implemented";
}
}
};
};

0 comments on commit bdb0ed4

Please sign in to comment.