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({
<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 = {
}, false)
let [,test] = window.location.href.split('?')
- if (tests.hasOwnProperty(test))
- tests[test]()
+ if (tests.hasOwnProperty(test))
+ tests[test]()
}
</script>
</html>