From 7704ff8e755223167fe9368fa805e273c48c0221 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 16 Apr 2012 00:12:52 +0200 Subject: [PATCH] Don't log host in javascript error --- couchpotato/templates/_desktop.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/templates/_desktop.html b/couchpotato/templates/_desktop.html index 63aa4dd8..e6d1ccb2 100644 --- a/couchpotato/templates/_desktop.html +++ b/couchpotato/templates/_desktop.html @@ -66,8 +66,8 @@ 'data': { 'type': 'error', 'message': Browser.name + ' ' + Browser.version + ': \n' + message, - 'page': window.location.href, - 'file': file, + 'page': window.location.href.replace(window.location.host, 'HOST'), + 'file': file.replace(window.location.host, 'HOST'), 'line': line } });