Fixed browser shutdown bug for Macs

The unnecessary spaces in the URL query were causing `tellAppToQuit()` to fail to detect the query `path`, so the browser was being killed via timeout instead of intended script.
This commit is contained in:
Artur Adib 2011-09-06 13:59:14 -04:00
parent 76d58ca4ca
commit 1296da313c

View File

@ -157,7 +157,7 @@ function snapshotCurrentPage(page, task, failure) {
function sendQuitRequest() {
var r = new XMLHttpRequest();
r.open('POST', '/tellMeToQuit?path = ' + escape(appPath), false);
r.open('POST', '/tellMeToQuit?path=' + escape(appPath), false);
r.send('');
}