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