From 55476f169394e84a82fe878c257846db91666fc8 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 3 Jul 2017 10:42:39 +0100 Subject: [PATCH] Disable erroring behaviour for unhandled rejections. --- services/web/public/coffee/main.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/main.coffee b/services/web/public/coffee/main.coffee index 5ad6f37d34..642c910935 100644 --- a/services/web/public/coffee/main.coffee +++ b/services/web/public/coffee/main.coffee @@ -34,13 +34,14 @@ define [ "__MAIN_CLIENTSIDE_INCLUDES__" ], () -> angular.module('SharelatexApp').config( - ($locationProvider) -> + ($locationProvider, $qProvider) -> try $locationProvider.html5Mode({ enabled: false, requireBase: false, rewriteLinks: false }) + $qProvider.errorOnUnhandledRejections(false) catch e console.error "Error while trying to fix '#' links: ", e )