diff options
author | LawnCable <lawncable.tmw2@simonlaux.de> | 2018-06-30 17:55:25 +0200 |
---|---|---|
committer | LawnCable <lawncable.tmw2@simonlaux.de> | 2018-06-30 17:55:25 +0200 |
commit | f0b4b484b13371fe842966ee7ad687f39011d1ab (patch) | |
tree | a4bb85657761aa53c2c972013e15946f3a7a4b22 | |
parent | 60d5e7c6eda6167df3d9ffa305e3b3989779b933 (diff) | |
download | electron-f0b4b484b13371fe842966ee7ad687f39011d1ab.tar.gz electron-f0b4b484b13371fe842966ee7ad687f39011d1ab.tar.bz2 electron-f0b4b484b13371fe842966ee7ad687f39011d1ab.tar.xz electron-f0b4b484b13371fe842966ee7ad687f39011d1ab.zip |
workaround that it displays allways the most recent news
-rw-r--r-- | src/renderer/gameserver/news.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/gameserver/news.ts b/src/renderer/gameserver/news.ts index 094172c..656238c 100644 --- a/src/renderer/gameserver/news.ts +++ b/src/renderer/gameserver/news.ts @@ -7,7 +7,7 @@ export namespace News { // Fetches only the most recent entry export async function get(url:string,parser:NewsType):Promise<string>{ try { //1. load - const unsafe_content = await request(url); + const unsafe_content = await request(`${url}?${Math.random()}`); //2. sanitize const content = killHTML( unsafe_content ); //3. parse |