mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-02-27 22:29:22 +00:00
Cleaned up debugs
This commit is contained in:
parent
1cd33da722
commit
75439b5af3
@ -26,6 +26,7 @@ function loadCodeFund() {
|
||||
function handler() {
|
||||
if (this.readyState === this.DONE) {
|
||||
_loaded = true;
|
||||
|
||||
if (this.status === 200) {
|
||||
resolve(this.response);
|
||||
} else {
|
||||
@ -48,9 +49,10 @@ export default Ember.Component.extend({
|
||||
_triggerAds() {
|
||||
this.set('adRequested', true);
|
||||
loadCodeFund().then((data) => {
|
||||
_loaded = false;
|
||||
_promise = null;
|
||||
this.set('adDetails', data);
|
||||
this.set('adRequested', false);
|
||||
console.log('Loaded ad');
|
||||
}).catch(error => console.log(error));
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user