mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	re-add support for opera FOR NOW
This commit is contained in:
		
							parent
							
								
									a68bb6a2cf
								
							
						
					
					
						commit
						4ac3dfafd9
					
				| @ -9,18 +9,6 @@ function init(app, config, rendertemplate) { | ||||
| 
 | ||||
|   app.get("/*", function (req, res, next) { | ||||
|     if (didstart) return next(); | ||||
|     const userAgent = req.useragent.source; | ||||
|     if ( | ||||
|       userAgent.includes("Opera") || | ||||
|       userAgent.includes("OPR") || | ||||
|       userAgent.includes("OPRGX") | ||||
|     ) { | ||||
|       // Browser agent is Opera, Opera GX or OPRGX
 | ||||
|       res.redirect("https://www.mozilla.org/en-US/firefox/all/"); | ||||
|     } else { | ||||
|       // Browser agent is not Opera, Opera GX or OPRGX
 | ||||
|       next(); | ||||
|     } | ||||
| 
 | ||||
|     return rendertemplate(res, req, "timeout.ejs"); | ||||
|   }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley