Shell
Open URLs in the user's system browser from a plugin.
Shell API for plugins
Usage
import type { NuclearPluginAPI } from '@nuclearplayer/plugin-sdk';
export default {
async onEnable(api: NuclearPluginAPI) {
const token = await getAuthToken();
const authUrl = `https://example.com/auth?token=${token}`;
await api.Shell.openExternal(authUrl);
},
};Reference
Types
Last updated