Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 34a151f

Browse files
committed
feat(to-string): Use better toString() implementation
1 parent 6ede515 commit 34a151f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.2.0",
44
"description": "Register custom URLs for your NativeScript app",
55
"scripts": {
6-
"clean": "npm i rimraf && rimraf node_modules lib hooks platforms target '*.js' '*.js.map' 'app/**/*.js' 'app/**/*.js.map' && npm i",
6+
"preclean": "npm i rimraf",
7+
"clean": "rimraf node_modules lib hooks platforms target '*.js' '*.js.map' 'app/**/*.js' 'app/**/*.js.map' && npm i",
8+
"postclean": "npm i",
79
"prebuild": "npm run tslint",
810
"build": "npm run tsc",
911
"tsc": "tsc",

urlhandler.common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export function extractAppURL(urlParam: any): AppURL {
2323
}
2424
return {
2525
params: params,
26-
path: path
26+
path: path,
27+
toString: () => url
2728
};
2829
} else {
2930
return null;

0 commit comments

Comments
 (0)