blob: f396ff9e3ce23854a18b5de1c61ad459da7ad032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Object.defineProperty(window, 'requestAnimationFrame', {
value: function(cb) {} // Silence the browser.
})
Object.defineProperty(window, 'localStorage', {
value: {
store: {},
getItem: function(key) {
return this.store[key];
},
setItem: function(key, value) {
return this.store[key] = value;
},
clear: function() {
this.store = {};
}
}
});
Object.defineProperty(window, 'location', {
value: {
origin: "http://localhost:8080", /* where taler-local rev proxy listens to */
search: "",
pathname: "/sandbox/demobanks/default",
}
})
export default window;
|