diff options
-rw-r--r-- | src/proxyWorker.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js index 70b55244..94dfa37f 100644 --- a/src/proxyWorker.js +++ b/src/proxyWorker.js @@ -100,6 +100,13 @@ document.createElement = function document_createElement(what) { document.documentElement = {}; +document.styleSheets = [{ + cssRules: [], // TODO: forward to client + insertRule: function(rule, i) { + this.cssRules.splice(i, 0, rule); + } +}]; + if (typeof console === 'undefined') { var console = { log: function(x) { |