mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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:
parent
76d58ca4ca
commit
1296da313c
1 changed files with 1 additions and 1 deletions
|
@ -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('');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue