| Index: components/dom_distiller/content/resources/dom_distiller_viewer.js
|
| diff --git a/components/dom_distiller/content/resources/dom_distiller_viewer.js b/components/dom_distiller/content/resources/dom_distiller_viewer.js
|
| index 3a7d0a078f2b9101073db6c1140375f9a3f4a222..55f53bbf3854feaebdf305bed92df2acce7a9ef2 100644
|
| --- a/components/dom_distiller/content/resources/dom_distiller_viewer.js
|
| +++ b/components/dom_distiller/content/resources/dom_distiller_viewer.js
|
| @@ -65,3 +65,12 @@ var updateLoadingIndicator = function() {
|
| }
|
| };
|
| }();
|
| +
|
| +// Add a listener to the "View Original" link to report opt-outs.
|
| +document.getElementById('showOriginal').addEventListener('click', function(e) {
|
| + var img = document.createElement('img');
|
| + img.src = "/vieworiginal";
|
| + img.style.display = "none";
|
| + document.body.appendChild(img);
|
| +}, true);
|
| +
|
|
|