Index: components/dom_distiller/core/javascript/domdistiller.js |
diff --git a/components/dom_distiller/core/javascript/domdistiller.js b/components/dom_distiller/core/javascript/domdistiller.js |
index b542a4feaa5378d9f79a942064a187684b1dd7a1..8f5c357dd4b914534cb56201a7bdbc30d2c66e70 100644 |
--- a/components/dom_distiller/core/javascript/domdistiller.js |
+++ b/components/dom_distiller/core/javascript/domdistiller.js |
@@ -14,12 +14,15 @@ |
// This include will be processed at build time by grit. |
<include src="../../../../third_party/dom_distiller_js/package/js/domdistiller.js"/> |
} |
- context = Object.create(window); |
+ var context = Object.create(window); |
+ context.setTimeout = function() {}; |
+ context.clearTimeout = function() {}; |
initialize(context); |
// The OPTIONS placeholder will be replaced with the DomDistillerOptions at |
// runtime. |
- res = context.com.dom_distiller.DomDistiller.applyWithOptions($$OPTIONS); |
+ var distiller = context.com.dom_distiller.client.DomDistiller; |
+ var res = distiller.applyWithOptions($$OPTIONS); |
return res; |
} catch (e) { |
window.console.error("Error during distillation: " + e); |