:art:
authorKevin Sawicki <kevinsawicki@gmail.com>
Fri, 30 Sep 2016 15:36:51 +0000 (08:36 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 30 Sep 2016 15:38:21 +0000 (08:38 -0700)
spec/api-browser-window-spec.js
spec/fixtures/api/sandbox.html

index a0b043ed22f56d38d6f5c10f5321ca168bb8b763..5bb18833ed2252f406dd415b76abd2ba874a4e7c 100644 (file)
@@ -598,7 +598,7 @@ describe('browser-window module', function () {
 
       const preload = path.join(fixtures, 'module', 'preload-sandbox.js')
 
-      // http protocol to simulate accessing a another domain. this is required
+      // http protocol to simulate accessing another domain. This is required
       // because the code paths for cross domain popups is different.
       function crossDomainHandler (request, callback) {
         callback({
index a684664a9665cb274683a5697250f91a9e747c3d..a74a1d5d600ade97b2518a49a6a64421e86215f9 100644 (file)
@@ -1,9 +1,9 @@
 <html>
 <script type="text/javascript" charset="utf-8">
   if (window.opener) {
-    window.callback = function() {
+    window.callback = () => {
       opener.require('electron').ipcRenderer.send('answer', document.body.innerHTML)
-    };
+    }
   } else {
     const {ipcRenderer} = require('electron')
     const tests = {
@@ -69,8 +69,8 @@
     }, false)
 
     let [,test] = window.location.href.split('?')
-      if (tests.hasOwnProperty(test))
-        tests[test]()
+    if (tests.hasOwnProperty(test))
+      tests[test]()
   }
 </script>
 </html>