Skip to content

Commit

Permalink
Use require when it exists only
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Dec 27, 2019
1 parent 63be0b7 commit 9775d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<div id="root"></div>
<script>
;(function() {
if (require == null) {
return
}
const electron = require('electron')
function $openExternal(url) {
console.log('opening ...', url)
Expand Down

0 comments on commit 9775d32

Please sign in to comment.