mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-21 19:30:48 +00:00
Adds support for stopping when browser prepends www to wrp.stop command.
This commit is contained in:
parent
100ab83720
commit
9914700ae9
4
wrp.py
4
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user