Skip to content

Commit

Permalink
partially working
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdew committed Jan 11, 2011
1 parent 9ac4c6b commit 61dbdc5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app.js
Expand Up @@ -2,9 +2,7 @@ var http = require('http');
var io = require('socket.io');
var wina = require('./wina.js');
var readFileSync = require("fs").readFileSync;
var jsdom = require("jsdom")


var jsdom = require("jsdom");

function handler(req, res) {
console.log("handler called");
Expand All @@ -21,7 +19,7 @@ wina.get("/static", handler);

server.listen(8888, "0.0.0.0");

var doc = readFileSync("./www/index.html", "utf8")
var doc = readFileSync("./www/index.html", "utf8");
console.log("A");
var window = jsdom.jsdom(doc, false, {url: "http://127.0.0.1:8888/"}).createWindow();
console.log("B", window);//.$('html').html());
Expand Down

0 comments on commit 61dbdc5

Please sign in to comment.