aboutsummaryrefslogtreecommitdiff
path: root/src/headless.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-20 10:23:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-20 10:23:28 -0700
commitbedb3bfacba7aa761777d1ede43d014b7e2c5ee4 (patch)
treedebe3f0672a99ce4d7c8b28f3010cbb4abc1a69c /src/headless.js
parent83972554f5fce6b2205d28211e115195dbdf6523 (diff)
improve headless.js
Diffstat (limited to 'src/headless.js')
-rw-r--r--src/headless.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/headless.js b/src/headless.js
index 097a42f7..1c7b8945 100644
--- a/src/headless.js
+++ b/src/headless.js
@@ -23,6 +23,7 @@ var window = {
return '%s';
},
search: '?%s',
+ pathname: '%s',
},
fakeNow: 0, // we don't use Date.now()
rafs: [],
@@ -84,6 +85,7 @@ var window = {
},
revokeObjectURL: function(x) {},
},
+ encodeURIComponent: function(x) { return x },
};
var setTimeout = window.setTimeout;
var document = {