mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying with http2
This commit is contained in:
@@ -78,10 +78,10 @@ function startSingle(clustered, redis_enabled) {
|
||||
ca: ca
|
||||
};
|
||||
var https = require('https');
|
||||
server = https.Server(credentials, routingFunction);
|
||||
server = require('http2').createServer(credentials, routingFunction);
|
||||
} catch(err){
|
||||
console.log("Starting without https (probably on localhost)");
|
||||
server = http.createServer(routingFunction);
|
||||
server = require('http2').createServer(routingFunction);
|
||||
}
|
||||
|
||||
if(clustered) {
|
||||
|
||||
@@ -146,6 +146,7 @@ if(!Helper.mobilecheck()) {
|
||||
window.onerror = function(e) {
|
||||
if(e == "Script error.") return true;
|
||||
Helper.logs.unshift({log: e.toString().replace(/(\r\n|\n|\r)/gm,""), date: new Date()});
|
||||
Helper.logs.unshift({log: chan.toLowerCase(), date: new Date()});
|
||||
$(".contact-form-content").remove();
|
||||
$("#submit-contact-form").remove();
|
||||
$(".contact-modal-header").text("An error occurred");
|
||||
|
||||
Reference in New Issue
Block a user