mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	lol
Signed-off-by: Ashley <iamashley@duck.com>
This commit is contained in:
		
							parent
							
								
									3688d38055
								
							
						
					
					
						commit
						21259a2225
					
				| @ -40,8 +40,7 @@ const splash = [ | ||||
|     "also try invidious!" | ||||
| ] | ||||
| 
 | ||||
| const random = | ||||
|   splash[Math.floor(Math.random() * splash.length)]; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| function getJson(str) { | ||||
| @ -96,6 +95,7 @@ module.exports = function (app, config, renderTemplate) { | ||||
| 
 | ||||
|   app.get("/:v*?", async function (req, res) { | ||||
|     const uaos = req.useragent.os; | ||||
|     const random = splash[Math.floor(Math.random() * splash.length)]; | ||||
|     const browser = req.useragent.browser; | ||||
|     const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley