Commit f697ac8c by tarokkk

laborgui: Fixed user-agent hogy Mate uroljon

parent 5b3c9ddb
...@@ -86,7 +86,7 @@ class Browser: ...@@ -86,7 +86,7 @@ class Browser:
self.webview.open("https://cloud.ik.bme.hu/store/gui/") self.webview.open("https://cloud.ik.bme.hu/store/gui/")
self.webview.connect("navigation-requested", self.on_navigation_requested) self.webview.connect("navigation-requested", self.on_navigation_requested)
settings = webkit.WebSettings() settings = webkit.WebSettings()
settings.set_property('user-agent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22 '+'cloud-gui '+self.version) settings.set_property('user-agent', settings.get_property('user-agent')+' cloud-gui '+self.version)
settings.set_property('enable-accelerated-compositing', True) settings.set_property('enable-accelerated-compositing', True)
settings.set_property("enable-default-context-menu", False) settings.set_property("enable-default-context-menu", False)
self.webview.set_settings(settings) self.webview.set_settings(settings)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment