aboutsummaryrefslogtreecommitdiffstats
path: root/scudcloud-1.0/lib/wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'scudcloud-1.0/lib/wrapper.py')
-rw-r--r--scudcloud-1.0/lib/wrapper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scudcloud-1.0/lib/wrapper.py b/scudcloud-1.0/lib/wrapper.py
index 2864876..1d710d4 100644
--- a/scudcloud-1.0/lib/wrapper.py
+++ b/scudcloud-1.0/lib/wrapper.py
@@ -24,8 +24,13 @@ class Wrapper(QWebView):
self.loadStarted.connect(self._loadStarted)
self.loadFinished.connect(self._loadFinished)
self.linkClicked.connect(self._linkClicked)
+ self.page().featurePermissionRequested.connect(self.permissionRequested)
self.addActions()
+ def permissionRequested(self, frame, feature):
+ self.page().setFeaturePermission(frame, feature, QWebPage.PermissionGrantedByUser)
+ self.call("overrideNotifications")
+
def configure_proxy(self):
proxy = urlparse(os.environ.get('http_proxy') or os.environ.get('HTTP_PROXY'))
if proxy.hostname is not None and proxy.port is not None: