mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-13 20:48:12 +00:00
Update adbutler.component.ts
This commit is contained in:
@ -24,9 +24,13 @@ export class AdbutlerComponent implements OnInit {
|
|||||||
this.httpClient
|
this.httpClient
|
||||||
.get('https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;').subscribe(
|
.get('https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;').subscribe(
|
||||||
response => {
|
response => {
|
||||||
this.onLoad.emit(true);
|
if (response['placements']) {
|
||||||
this.htmlCode = response['placements'].placement_1.body;
|
this.onLoad.emit(true);
|
||||||
this.ad.nativeElement.insertAdjacentHTML('beforeend', this.htmlCode);
|
this.htmlCode = response['placements'].placement_1.body;
|
||||||
|
this.ad.nativeElement.insertAdjacentHTML('beforeend', this.htmlCode);
|
||||||
|
} else {
|
||||||
|
this.onLoad.emit(false);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error => {}
|
error => {}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user