From 9914700ae9a7b6aa9a460a7dbda8d2629e995861 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 10 May 2017 03:46:15 +0100 Subject: [PATCH] Adds support for stopping when browser prepends www to wrp.stop command. --- wrp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrp.py b/wrp.py index 99a796a..2d7486c 100755 --- a/wrp.py +++ b/wrp.py @@ -412,7 +412,7 @@ if sys.platform == "linux" or sys.platform == "linux2": WebkitRenderer.req_url = req[1] WebkitRenderer.req_jpg = req[2] WebkitRenderer.req_map = req[3] - if WebkitRenderer.req_url == "http://wrp.stop/": + if WebkitRenderer.req_url == "http://wrp.stop/" or WebkitRenderer.req_url == "http://www.wrp.stop/": print ">>> Terminate Request Received" QApplication.exit(0) break @@ -482,7 +482,7 @@ elif sys.platform == "darwin": WebkitLoad.req_gif = req[2] WebkitLoad.req_map = req[3] - if WebkitLoad.req_url == "http://wrp.stop/": + if WebkitLoad.req_url == "http://wrp.stop/" or WebkitLoad.req_url == "http://www.wrp.stop/": print ">>> Terminate Request Received" AppKit.NSApplication.sharedApplication().terminate_(None)