[+] Add instance in App class
This commit is contained in:
@@ -91,6 +91,9 @@ export default class App extends Vue
|
|||||||
// Http Client
|
// Http Client
|
||||||
public static http: HttpUtils = new HttpUtils();
|
public static http: HttpUtils = new HttpUtils();
|
||||||
|
|
||||||
|
// Instance
|
||||||
|
public static instance: App;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is called when the instance is created.
|
* This is called when the instance is created.
|
||||||
*/
|
*/
|
||||||
@@ -98,6 +101,9 @@ export default class App extends Vue
|
|||||||
{
|
{
|
||||||
// Show splash
|
// Show splash
|
||||||
console.log(Constants.SPLASH);
|
console.log(Constants.SPLASH);
|
||||||
|
|
||||||
|
// Update instance
|
||||||
|
App.instance = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user