forked from I2P_Developers/i2p.i2p
recognize links as a text browser
This commit is contained in:
@ -351,7 +351,8 @@ public class I2PSnarkServlet extends Default {
|
|||||||
// Using a unique name fixes Opera, except for the buttons with js confirms, see below
|
// Using a unique name fixes Opera, except for the buttons with js confirms, see below
|
||||||
String ua = req.getHeader("User-Agent");
|
String ua = req.getHeader("User-Agent");
|
||||||
boolean isDegraded = ua != null && (ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
boolean isDegraded = ua != null && (ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
||||||
ua.startsWith("ELinks") || ua.startsWith("Dillo"));
|
ua.startsWith("ELinks") || ua.startsWith("Links") ||
|
||||||
|
ua.startsWith("Dillo"));
|
||||||
|
|
||||||
boolean noThinsp = isDegraded || (ua != null && ua.startsWith("Opera"));
|
boolean noThinsp = isDegraded || (ua != null && ua.startsWith("Opera"));
|
||||||
if (_manager.util().connected()) {
|
if (_manager.util().connected()) {
|
||||||
|
@ -70,6 +70,7 @@ public class CSSHelper extends HelperBase {
|
|||||||
*/
|
*/
|
||||||
public boolean allowIFrame(String ua) {
|
public boolean allowIFrame(String ua) {
|
||||||
return ua == null || !(ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
return ua == null || !(ua.startsWith("Lynx") || ua.startsWith("w3m") ||
|
||||||
ua.startsWith("ELinks") || ua.startsWith("Dillo"));
|
ua.startsWith("ELinks") || ua.startsWith("Links") ||
|
||||||
|
ua.startsWith("Dillo"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user