mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Export set function for cssFile and resources.
This commit is contained in:
@@ -34,6 +34,10 @@ export var mainEntry: frame.NavigationEntry;
|
||||
|
||||
export var cssFile: string = "app.css"
|
||||
|
||||
export function setCssFileName(cssFileName: string) {
|
||||
cssFile = cssFileName;
|
||||
}
|
||||
|
||||
export var appSelectors: RuleSet[] = [];
|
||||
export var additionalSelectors: RuleSet[] = [];
|
||||
export var cssSelectors: RuleSet[] = [];
|
||||
@@ -42,6 +46,10 @@ export var keyframes: any = {};
|
||||
|
||||
export var resources: any = {};
|
||||
|
||||
export function setResources(res: any) {
|
||||
resources = res;
|
||||
}
|
||||
|
||||
export var onUncaughtError: (error: definition.NativeScriptError) => void = undefined;
|
||||
|
||||
export var onLaunch: (context: any) => any = undefined;
|
||||
|
||||
Reference in New Issue
Block a user