diff --git a/app/main/main.js b/app/main/main.js index 8f6cccbf..9dc2f2ee 100644 --- a/app/main/main.js +++ b/app/main/main.js @@ -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('
Hello World, It works
'); - - console.log(w.$(".testing").text()); -}); - - restartApp = function(){ var exec = require('child_process').exec exec(process.argv.join(' '))