diff --git a/README.md b/README.md index 173cb417..423fbf25 100644 --- a/README.md +++ b/README.md @@ -25,17 +25,35 @@ yarn add @zazuko/yasgui ## Local development -#### Installing dependencies +### Install dependencies -Run `npm install`. +```sh +npm install +``` -#### Running Yasgui locally +### Run Yasgui locally -To develop locally, run `npm run dev` +To develop locally, run: -#### Compiling Yasgui +```sh +npm run dev +``` -Run `npm run build`. It'll store the transpiled js/css files in the `build` directory. +### Compiling Yasgui + +It'll store the transpiled js/css files in the `build` directory. Run: + +```sh +npm run build +``` + +### Run tests + +You'll first need to compile it, then run: + +```sh +npm test +``` ## License diff --git a/packages/yasgui/src/linkUtils.ts b/packages/yasgui/src/linkUtils.ts index fcbab0e3..ab1d89fe 100644 --- a/packages/yasgui/src/linkUtils.ts +++ b/packages/yasgui/src/linkUtils.ts @@ -15,7 +15,6 @@ var getUrlParams = function (_url?: string) { //firefox does some decoding if we're using window.location.hash (e.g. the + sign in contentType settings) //Don't want this. So simply get the hash string ourselves url.query(url.anchor()); - if (urlFromWindow) window.location.hash = ""; //clear hash } return url; };