2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-16 01:37:07 +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", "main": "lib/main.js",
"dependencies": { "dependencies": {
"electron-window-state": "^2.0.0", "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": {}, "devDependencies": {},
"scripts": { "scripts": {

View File

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

View File

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