mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Cools down Chrome/Windows during testing
This commit is contained in:
parent
7d5bf83ce8
commit
4d3b15a486
2 changed files with 19 additions and 5 deletions
|
@ -47,6 +47,7 @@ function WebServer() {
|
|||
this.port = 8000;
|
||||
this.server = null;
|
||||
this.verbose = false;
|
||||
this.disableRangeRequests = false;
|
||||
this.hooks = {
|
||||
'GET': [],
|
||||
'POST': []
|
||||
|
@ -89,8 +90,7 @@ WebServer.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
// disables range requests for chrome windows -- locks during testing
|
||||
var disableRangeRequests = /Windows.*?Chrom/i.test(agent);
|
||||
var disableRangeRequests = this.disableRangeRequests;
|
||||
|
||||
var filePath;
|
||||
fs.realpath(path.join(this.root, pathPart), checkFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue