1
0
Fork 0
VaultUI/src/playground.tsx

21 lines
538 B
TypeScript
Raw Normal View History

2022-01-11 10:57:30 +00:00
import { Settings } from "./settings/Settings";
2022-01-11 12:45:35 +00:00
import { settings } from "./globalSettings";
2022-01-11 10:57:30 +00:00
// Playground is a way to debug and test things.
// Anything you put in here is gonna be run on page initial load
// before rendering.
// Also it only runs when process.env.NODE_ENV == "development"
2022-01-11 10:57:30 +00:00
declare global {
interface Window {
settings: Settings;
}
}
// Please empty this function before committing.
2022-01-07 13:14:25 +00:00
export async function playground(): Promise<void> {
console.log("Welcome to Playground!");
2022-01-11 10:57:30 +00:00
window.settings = settings;
}