Skip to content
Snippets Groups Projects
Commit 961ca598 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Add support for ads in browser console output

Proof of concept for text display from a separate json file,
all array items of key 'hi' are printed to the browser console.
parent 7db5d56c
No related branches found
No related tags found
No related merge requests found
Pipeline #51165 failed
......@@ -265,9 +265,9 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) {
this.showAdvertisment();
}
async showAdvertisment() {
showAdvertisment() {
const url = this.basePath + 'exit-vim.json';
await fetch(url, { headers: {'Content-Type': 'application/json'} })
fetch(url, { headers: {'Content-Type': 'application/json'} })
.then(response => response.json())
.then(data => data['hi'].forEach(item => console.log(item)));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment