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