Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Revert "Fix indent"
Browse files Browse the repository at this point in the history
This reverts commit 0b84abe.
  • Loading branch information
aerosol committed Oct 8, 2018
1 parent 0b84abe commit 12afb7f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions index.html
Expand Up @@ -10,18 +10,18 @@
<webview id="fastmail" src="https://fastmail.com" style="height:100%;width:100%;position:absolute;"></webview>
</body>
<script>
let w = document.getElementById('fastmail')
let shell = require('electron').shell
let w = document.getElementById('fastmail')
let shell = require('electron').shell

w.addEventListener('did-finish-load', function(event) {
w.setZoomLevel(1.4)
})
w.addEventListener('did-finish-load', function(event) {
w.setZoomLevel(1.4)
})

w.addEventListener('new-window', function (event) {
if (event.url.startsWith('http')) {
event.preventDefault()
shell.openExternal(event.url)
}
})
w.addEventListener('new-window', function (event) {
if (event.url.startsWith('http')) {
event.preventDefault()
shell.openExternal(event.url)
}
})
</script>
</html>

0 comments on commit 12afb7f

Please sign in to comment.