Remove hyphenated options
authorKevin Sawicki <kevinsawicki@gmail.com>
Thu, 28 Apr 2016 16:39:37 +0000 (09:39 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 6 May 2016 17:12:53 +0000 (10:12 -0700)
lib/renderer/override.js

index db56ead..bb09a99 100644 (file)
@@ -85,9 +85,8 @@ window.open = function (url, frameName, features) {
   }
   options = {}
 
-  // TODO remove hyphenated options in both of the following arrays for 1.0
-  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 ints = ['x', 'y', 'width', 'height', 'minWidth', 'maxWidth', 'minHeight', 'maxHeight', 'zoomFactor']
+  const webPreferences = ['zoomFactor', 'nodeIntegration', 'preload']
   const disposition = 'new-window'
 
   // Make sure to get rid of excessive whitespace in the property name