mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fix: application.setCssFileName does not work
This commit is contained in:
@ -48,11 +48,7 @@ export var orientationChangedEvent = "orientationChanged";
|
||||
export var mainModule: string;
|
||||
export var mainEntry: NavigationEntry;
|
||||
|
||||
export var cssFile: string = "app.css"
|
||||
|
||||
export function setCssFileName(cssFileName: string) {
|
||||
cssFile = cssFileName;
|
||||
}
|
||||
export var cssFile: string = "app.css";
|
||||
|
||||
export var appSelectors: RuleSet[] = [];
|
||||
export var additionalSelectors: RuleSet[] = [];
|
||||
|
@ -311,6 +311,11 @@ function loadCss() {
|
||||
}
|
||||
}
|
||||
|
||||
export function setCssFileName(cssFileName: string) {
|
||||
typedExports.cssFile = cssFileName;
|
||||
console.log(`>>>>>>>> cssFile: ${typedExports.cssFile}`);
|
||||
}
|
||||
|
||||
export function addCss(cssText: string) {
|
||||
//HACK: identical to application.ios.ts
|
||||
const parsed = typedExports.parseCss(cssText);
|
||||
|
@ -234,6 +234,11 @@ function loadCss() {
|
||||
}
|
||||
}
|
||||
|
||||
export function setCssFileName(cssFileName: string) {
|
||||
typedExports.cssFile = cssFileName;
|
||||
console.log(`>>>>>>>> cssFile: ${typedExports.cssFile}`);
|
||||
}
|
||||
|
||||
export function addCss(cssText: string) {
|
||||
//HACK: identical to application.android.ts
|
||||
const parsed = typedExports.parseCss(cssText);
|
||||
|
Reference in New Issue
Block a user