[MM-20363] prevent using api to navigate within the app's window (#1137)

* prevent using api to navigate within the app's window

* api calls handled differently

* add aliases to ease development

* small refactor of url navigation

* hardcode http/s protocol being allowed

* add protocols specified on electron-builder
This commit is contained in:
Guillermo Vayá
2020-01-17 19:52:05 +01:00
committed by Dean Whillier
parent b98e6a451d
commit 58cf6d5b28
5 changed files with 131 additions and 72 deletions

View File

@@ -21,8 +21,10 @@
"build:main": "webpack-cli --bail --config webpack.config.main.js",
"build:renderer": "webpack-cli --bail --config webpack.config.renderer.js",
"start": "electron src --disable-dev-mode",
"restart": "npm run build && npm run start",
"storybook": "start-storybook -p 9001 -c src/.storybook",
"clean": "rm -rf release/ node_modules/ src/node_modules/ && find src -name '*_bundle.js' | xargs rm",
"clean-install": "npm run clean && npm install",
"watch": "run-p watch:*",
"watch:main": "node scripts/watch_main_and_preload.js",
"watch:renderer": "webpack-dev-server --config webpack.config.renderer.js",