mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-14 16:53:26 +00:00
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.
This commit is contained in:
parent
0d4e6bb4fa
commit
75a56891d2
@ -371,8 +371,6 @@ export default Ember.Component.extend({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ember_w_function = String.prototype.w;
|
|
||||||
String.prototype.w = null;
|
|
||||||
var self = this;
|
var self = this;
|
||||||
loadGoogle(this.siteSettings)
|
loadGoogle(this.siteSettings)
|
||||||
.then(function() {
|
.then(function() {
|
||||||
@ -395,9 +393,6 @@ export default Ember.Component.extend({
|
|||||||
window.googletag.pubads().refresh([slot.ad]);
|
window.googletag.pubads().refresh([slot.ad]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
|
||||||
.finally(function() {
|
|
||||||
String.prototype.w = ember_w_function;
|
|
||||||
});
|
});
|
||||||
}.on("didInsertElement"),
|
}.on("didInsertElement"),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user