mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(wk): built-in support for WK (#11048)
This commit is contained in:
@@ -159,7 +159,7 @@ export { Events, setupEvents, setupProvideEvents } from './util/events';
|
||||
export { IonicErrorHandler } from './util/ionic-error-handler';
|
||||
export { Keyboard } from './platform/keyboard';
|
||||
export { Form, IonicFormInput, IonicTapInput } from './util/form';
|
||||
export { reorderArray } from './util/util';
|
||||
export { reorderArray, normalizeURL } from './util/util';
|
||||
export { Animation, AnimationOptions, EffectProperty, EffectState, PlayOptions } from './animations/animation';
|
||||
export { PageTransition } from './transitions/page-transition';
|
||||
export { Transition } from './transitions/transition';
|
||||
|
||||
@@ -49,6 +49,17 @@ export function debounce(fn: Function, wait: number, immediate: boolean = false)
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Rewrites an absolute URL so it works across file and http based engines.
|
||||
*/
|
||||
export function normalizeURL(url: string): string {
|
||||
const ionic = (<any>window)['Ionic'];
|
||||
if (ionic && ionic.normalizeURL) {
|
||||
return ionic.normalizeURL(url);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
* Apply default arguments if they don't exist in
|
||||
|
||||
Reference in New Issue
Block a user