Q: related to openExteral... Is this the correct way to call this?

Is this the correct way to call this?

I have this set to an onClick for a button in my widget, but it doesn’t seem to be working.

  const gotoDoc = async () => {
    window.openai.openExternal({ "payload": "https://developers.openai.com/apps-sdk" });
  };

In the debugger I can see it gets called, but nothing happens and no error shows up on the console.

1 Like

Right approach would be

  const gotoDoc = async () => {
    window.openai.openExternal({ "href": "https://developers.openai.com/apps-sdk" });
  };