this wasn't supposed to be saved...
This commit is contained in:
parent
8a385079c6
commit
93c9056c1b
1 changed files with 0 additions and 24 deletions
|
|
@ -57,30 +57,6 @@ dialog.showErrorBox = function(title,err) {
|
|||
}
|
||||
|
||||
|
||||
var x = require('express')(),
|
||||
path = require('path')
|
||||
|
||||
x.get('/', function(req, res){
|
||||
res.sendfile(path.resolve(__dirname + '/../browser/index.html'));
|
||||
});
|
||||
|
||||
x.get('*', function(req, res){
|
||||
res.sendfile(path.resolve(__dirname + '/../browser'+req.path));
|
||||
});
|
||||
|
||||
x.listen(3000);
|
||||
|
||||
|
||||
var jsdom = require("jsdom");
|
||||
var w = jsdom.jsdom().defaultView;
|
||||
|
||||
jsdom.jQueryify(w, "http://code.jquery.com/jquery-2.1.1.js", function () {
|
||||
w.$("body").append('<div class="testing">Hello World, It works</div>');
|
||||
|
||||
console.log(w.$(".testing").text());
|
||||
});
|
||||
|
||||
|
||||
restartApp = function(){
|
||||
var exec = require('child_process').exec
|
||||
exec(process.argv.join(' '))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue