UNPKG

@bexis2/bexis2-core-ui

Version:

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

17 lines (15 loc) 480 B
// Implementations for all the calls for the pokemon endpoints. //import Api from "./Api"; import { host } from '../stores/apiStores'; // go to a internal action export const goTo = async (url, intern = true, target="_self") => { if (intern == true) { // go to inside bexis2 if (window != null && host != null && url != null) { window.open(host + url, target)?.focus(); } } // go to a external page else { window.open(url, '_blank')?.focus(); } };