Skip to content

Instantly share code, notes, and snippets.

@danielo515
Forked from Arlen22/index.htm
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielo515/54091696566b8f504e0d to your computer and use it in GitHub Desktop.
Save danielo515/54091696566b8f504e0d to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head></head>
<body>
<script>process.mainModule.exports.boot();</script>
</body>
</html>
exports.boot = function() {
console.log('booted');
console.log(window);
global.$tw = require("./boot/bootprefix.js").bootprefix();
$tw.boot.suppressBoot = true ;
$tw.boot.argv = ['./editions/server'];
$tw = require("./boot/boot.js").TiddlyWiki($tw);
$tw.boot.boot();
};
{
"node-main": "./nodewebkit.js",
"main":"./index.htm",
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment