This commit adds the following option and export to allow override of
the initial splash screen.
Example:
import {Core, Splash} from '@osjs/client';
class CustomSplash extends Splash {
init() {
// This is the default, you can override this
this.$loading
.appendChild(document.createTextNode('Loading...'));
}
}
// In your bootstrap add an option to a callback
// to point to the new splash instance.
new Core(config, {
splash: core => new CustomSplash(core)
});
This commit adds the following option and export to allow override of the initial splash screen.
Example: