Skip to content

Commit d480e0b

Browse files
committed
fix: rollback
1 parent d286d07 commit d480e0b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"lerna": "^4.0.0",
5757
"nativescript-vue": "^2.9.0",
5858
"ng-packagr": "~12.0.2",
59-
"normalize-url": "^7.0.0",
6059
"prettier": "^2.3.0",
6160
"promise-polyfill": "^8.2.0",
6261
"prompt": "^1.1.0",

plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"url": "https://github.com/nativescript-community/ui-webview/issues"
3131
},
3232
"dependencies": {
33-
"normalize-url": "^7.0.0"
33+
"url": "^0.11.0"
3434
},
3535
"gitHead": "afa99a5f27006ed7545af88d2f8544fc1721e41c"
3636
}

src/webview-ext-common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
import { isEnabledProperty } from '@nativescript/core/ui/core/view';
1515
import normalizeUrl from 'normalize-url';
1616
import { metadataViewPort, promisePolyfill, webViewBridge } from './nativescript-webview-bridge-loader';
17+
import * as URL from 'url';
1718

1819
export interface ViewPortProperties {
1920
width?: number | 'device-width';
@@ -1173,7 +1174,7 @@ export class WebViewExtBase extends ContainerView {
11731174
return url;
11741175
}
11751176

1176-
return normalizeUrl(url);
1177+
return URL.parse(url).format();
11771178
}
11781179

11791180
/**

0 commit comments

Comments
 (0)