From ae1c43656999181735ee35169658737a5fb524c1 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Tue, 18 Mar 2014 11:52:21 +0000 Subject: [PATCH] Don't redirect on localhost urls - fix #110 --- squirt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squirt.js b/squirt.js index 270581e..b3f8cdd 100644 --- a/squirt.js +++ b/squirt.js @@ -141,7 +141,7 @@ sq.host = window.location.search.match('sq-dev') ? function finalWord(){ Keen.addEvent('final-word'); toggle(document.querySelector('.sq .reader')); - if(window.location.hostname.match('squirt.io|localhost')){ + if(window.location.hostname.match('squirt.io')){ window.location.href = '/install.html'; } else { showTweetButton(nodes.length,