mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
style(platform): fix lint errors
This commit is contained in:
@ -246,3 +246,4 @@ export const PlatformConfigToken = new OpaqueToken('PLTCONFIG');
|
|||||||
export function providePlatformConfigs() {
|
export function providePlatformConfigs() {
|
||||||
return PLATFORM_CONFIGS;
|
return PLATFORM_CONFIGS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,3 +30,4 @@ export function isWKWebView(plt: Platform): boolean {
|
|||||||
export function isIosUIWebView(plt: Platform): boolean {
|
export function isIosUIWebView(plt: Platform): boolean {
|
||||||
return isIos(plt) && !isWKWebView(plt) && !isSafari(plt);
|
return isIos(plt) && !isWKWebView(plt) && !isSafari(plt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,7 +458,7 @@ describe('Platform', () => {
|
|||||||
expect(plt.is('ipad')).toEqual(false);
|
expect(plt.is('ipad')).toEqual(false);
|
||||||
expect(plt.is('tablet')).toEqual(false);
|
expect(plt.is('tablet')).toEqual(false);
|
||||||
expect(plt.is('electron')).toEqual(true);
|
expect(plt.is('electron')).toEqual(true);
|
||||||
})
|
});
|
||||||
|
|
||||||
it('should set core platform for osx desktop firefox', () => {
|
it('should set core platform for osx desktop firefox', () => {
|
||||||
plt.setQueryParams('');
|
plt.setQueryParams('');
|
||||||
|
Reference in New Issue
Block a user