mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-01 18:46:43 +00:00
Update adbutler.component.ts
This commit is contained in:
parent
29e8949872
commit
d1fb7e6624
@ -23,7 +23,7 @@ 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 => {
|
||||||
if (response && response['placements']) {
|
if (response && response['placements'] && response['placements'].placement_1 && response['placements'].placement_1.body) {
|
||||||
this.onLoad.emit(true);
|
this.onLoad.emit(true);
|
||||||
this.htmlCode = response['placements'].placement_1.body;
|
this.htmlCode = response['placements'].placement_1.body;
|
||||||
this.ad.nativeElement.insertAdjacentHTML('beforeend', this.htmlCode);
|
this.ad.nativeElement.insertAdjacentHTML('beforeend', this.htmlCode);
|
||||||
|
Loading…
Reference in New Issue
Block a user