Update
This commit is contained in:
		
							parent
							
								
									efbb43cfad
								
							
						
					
					
						commit
						c20386fa54
					
				|  | @ -69,20 +69,19 @@ async function fetchData() { | ||||||
|         log.innerHTML += `${post_tpl}<br>`; |         log.innerHTML += `${post_tpl}<br>`; | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| async function openInNewTab(url) { | async function openInNewTab(url) { | ||||||
|     window.open(url, '_blank').focus(); |     window.open(url, '_blank').focus(); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| async function getMastodonPage() { | async function getMastodonPage() { | ||||||
|  |     let log = document.getElementById('log'); | ||||||
|  |     if (!log) { | ||||||
|  |         setTimeout(getMastodonPage, 1000); | ||||||
|  |         return; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     let tplUrl = 'json/mastodon-tpl.html'; |     let tplUrl = 'json/mastodon-tpl.html'; | ||||||
|     let response = await fetch(tplUrl); |     let response = await fetch(tplUrl); | ||||||
|     var tpl = ""; |     var tpl = ""; | ||||||
|     let log = document.getElementById('log'); |  | ||||||
| 
 |  | ||||||
|     if (!log) { |  | ||||||
|         setTimeout(getMastodonPage, 1000); |  | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     log.innerHTML = ""; |     log.innerHTML = ""; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue