Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all spaces from potential appUserModelID as it isn't allowed by the spec #6602

Merged
merged 2 commits into from
Jul 27, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/browser/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ if (process.platform === 'win32') {

if (fs.statSyncNoException(updateDotExe)) {
var packageDir = path.dirname(path.resolve(updateDotExe))
var packageName = path.basename(packageDir)
var exeName = path.basename(process.execPath).replace(/\.exe$/i, '')
var packageName = path.basename(packageDir).replace(/ /g, '')
Copy link
Contributor

@zeke zeke Jul 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe /\s/g would match more space-like characters?

var exeName = path.basename(process.execPath).replace(/\.exe$/i, '').replace(/ /g, '')

app.setAppUserModelId(`com.squirrel.${packageName}.${exeName}`)
}
Expand Down