Skip to content

Commit

Permalink
Initial checkin from Lemma.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade committed Sep 11, 2018
0 parents commit ca4ea67
Show file tree
Hide file tree
Showing 9 changed files with 23,778 additions and 0 deletions.
34 changes: 34 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
var app = module.exports = require('appjs');

app.serveFilesFrom(__dirname + '/content');

var window = app.createWindow(
{
width : 1280,
height : 720,
icons : __dirname + '/content/icons'
});

window.on('create', function()
{
window.frame.show();
window.frame.center();
});

window.on('ready', function()
{
window.require = require;
window.process = process;
window.module = module;

function F12(e) { return e.keyIdentifier === 'F12' }
function Command_Option_J(e) { return e.keyCode === 74 && e.metaKey && e.altKey }

window.addEventListener('keydown', function(e)
{
if (F12(e) || Command_Option_J(e))
window.frame.openDevTools();
});

window.dispatchEvent(new window.Event('app-ready'));
});
Loading

0 comments on commit ca4ea67

Please sign in to comment.