Skip to content

Commit

Permalink
fix commandline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
felixkoch committed Jan 31, 2019
1 parent af383d3 commit 9f7848f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class App extends Component {
<Grid container spacing={16}>
<Grid item xs={12}>
<Typography variant="h4" align="center">
click2snom
The Dialer
</Typography>
</Grid>
<Grid item xs={12}>
Expand Down
6 changes: 3 additions & 3 deletions app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ if (!gotTheLock) {
store.set('testnumber', commandLine + workingDirectory);

let number = "";
let pos = commandLine.toLowerCase().indexOf('tel:');
//let pos = commandLine.toLowerCase().indexOf('tel:');

if(pos != -1)
if(commandLine.length == 2)
{
number = commandLine.substr(pos+4);
number = commandLine[1];
}

callSnom(
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"package-ci": "yarn postinstall && yarn build && electron-builder --publish always",
"package-linux": "yarn build && electron-builder build --linux",
"package-win": "yarn build && electron-builder build --win --x64",
"package-win-ci": "yarn postinstall && yarn build && electron-builder build --win --x64 --publish always",
"postinstall": "yarn flow-typed && electron-builder install-app-deps package.json && yarn build-dll && opencollective-postinstall",
"postlint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'",
"postlint-styles-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{css,scss}'",
Expand Down Expand Up @@ -83,8 +84,7 @@
},
"win": {
"target": [
"nsis",
"msi"
"nsis"
]
},
"linux": {
Expand Down

0 comments on commit 9f7848f

Please sign in to comment.