From 75a56891d2903f812db9c9e2794b8d4b1a758dc6 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 9 Jan 2019 20:58:14 +0100 Subject: [PATCH] Reverts Ember.String.prototype.w monkey patching causing exception The git blame of the commit is unclear on the reasons leading to this, and how to reproduce a failure. --- assets/javascripts/discourse/components/google-dfp-ad.js.es6 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/assets/javascripts/discourse/components/google-dfp-ad.js.es6 b/assets/javascripts/discourse/components/google-dfp-ad.js.es6 index 40ed3e3..b886371 100755 --- a/assets/javascripts/discourse/components/google-dfp-ad.js.es6 +++ b/assets/javascripts/discourse/components/google-dfp-ad.js.es6 @@ -371,8 +371,6 @@ export default Ember.Component.extend({ return; } - const ember_w_function = String.prototype.w; - String.prototype.w = null; var self = this; loadGoogle(this.siteSettings) .then(function() { @@ -395,9 +393,6 @@ export default Ember.Component.extend({ window.googletag.pubads().refresh([slot.ad]); } }); - }) - .finally(function() { - String.prototype.w = ember_w_function; }); }.on("didInsertElement"),