2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

Don't modify the window title

This commit is contained in:
Jia Hao 2016-01-30 00:30:25 +08:00
parent a9ccaa5c10
commit 8f06c555e5
3 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@
"main": "lib/main.js",
"dependencies": {
"electron-window-state": "^2.0.0",
"wurl": "^2.1.0",
"source-map-support": "^0.4.0"
"source-map-support": "^0.4.0",
"wurl": "^2.1.0"
},
"devDependencies": {},
"scripts": {

View File

@ -30,7 +30,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
y: mainWindowState.y,
'auto-hide-menu-bar': !options.showMenuBar,
// Convert dashes to spaces because on linux the app name is joined with dashes
title: options.name.replace(/-/g, ' '),
title: options.name,
'web-preferences': {
javascript: true,
plugins: true,

View File

@ -2,9 +2,9 @@ import os from 'os';
import path from 'path';
import url from 'url';
import validator from 'validator';
import sanitizeFilename from 'sanitize-filename';
import _ from 'lodash';
import async from 'async';
import sanitizeFilename from 'sanitize-filename';
import inferIcon from './infer/inferIcon';
import inferTitle from './infer/inferTitle';