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