From 4214759b9ddfd95dbbcae9f6e1d37d75332d3731 Mon Sep 17 00:00:00 2001 From: Thomas Rientjes Date: Mon, 14 Dec 2015 17:08:42 +0100 Subject: [PATCH] Fix referral bug --- lib/interceptor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interceptor.js b/lib/interceptor.js index dc6bc9d..4965a18 100644 --- a/lib/interceptor.js +++ b/lib/interceptor.js @@ -66,7 +66,7 @@ var Interceptor = new Class({ httpChannel.setRequestHeader('Referer', null, false); // Temporary fix for reported issues with the Play Store website. - if (httpChannel.referrer.host === 'play.google.com') { + if (httpChannel.referrer && httpChannel.referrer.host === 'play.google.com') { this.handleMissingCandidate(httpChannel); return; }