Merge pull request #4871 from atom/add-more-camel-case-options
Add minWidth and maxWidth to ints array
This commit is contained in:
commit
8cff36967e
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ if (process.guestInstanceId == null) {
|
||||||
|
|
||||||
// Make the browser window or guest view emit "new-window" event.
|
// Make the browser window or guest view emit "new-window" event.
|
||||||
window.open = function(url, frameName, features) {
|
window.open = function(url, frameName, features) {
|
||||||
var feature, guestId, i, ints, j, len, len1, name, options, ref1, ref2, value;
|
var feature, guestId, i, j, len, len1, name, options, ref1, ref2, value;
|
||||||
if (frameName == null) {
|
if (frameName == null) {
|
||||||
frameName = '';
|
frameName = '';
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ window.open = function(url, frameName, features) {
|
||||||
options = {};
|
options = {};
|
||||||
|
|
||||||
// TODO remove hyphenated options in both of the following arrays for 1.0
|
// TODO remove hyphenated options in both of the following arrays for 1.0
|
||||||
ints = ['x', 'y', 'width', 'height', 'min-width', 'max-width', 'min-height', 'minHeight', 'max-height', 'maxHeight', 'zoom-factor', 'zoomFactor'];
|
const ints = ['x', 'y', 'width', 'height', 'min-width', 'minWidth', 'max-width', 'maxWidth', 'min-height', 'minHeight', 'max-height', 'maxHeight', 'zoom-factor', 'zoomFactor'];
|
||||||
const webPreferences = ['zoom-factor', 'zoomFactor', 'node-integration', 'nodeIntegration', 'preload'];
|
const webPreferences = ['zoom-factor', 'zoomFactor', 'node-integration', 'nodeIntegration', 'preload'];
|
||||||
|
|
||||||
// Make sure to get rid of excessive whitespace in the property name
|
// Make sure to get rid of excessive whitespace in the property name
|
||||||
|
|
Loading…
Add table
Reference in a new issue