mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	use discover.ejs :3
This commit is contained in:
		
							parent
							
								
									d618ca057e
								
							
						
					
					
						commit
						7799ef903b
					
				| @ -56,7 +56,7 @@ module.exports = function (app, config, renderTemplate) { | ||||
|       j = getJson(modules.toJson(text)); | ||||
|     } | ||||
| 
 | ||||
|     renderTemplate(res, req, "main.ejs", { | ||||
|     renderTemplate(res, req, "discover.ejs", { | ||||
|       tab: req.query.tab, | ||||
|       isMobile: req.useragent.isMobile, | ||||
|       mobilesearch: req.query.mobilesearch, | ||||
| @ -70,8 +70,7 @@ module.exports = function (app, config, renderTemplate) { | ||||
|   app.get("/:v*?", async function (req, res) { | ||||
|     const uaos = req.useragent.os; | ||||
|     const browser = req.useragent.browser; | ||||
|     const isOldWindows = | ||||
|       (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; | ||||
|     const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; | ||||
| 
 | ||||
|     const rendermainpage = () => { | ||||
|       if (req.useragent.isMobile) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley