Commit 00baa11e7e928ff1dd4d99eab7d95026290ef437
1 parent
0b5e4e0e
Exists in
master
and in
6 other branches
Detects for localhost settings
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
js/main.js
@@ -18,6 +18,12 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | @@ -18,6 +18,12 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F | ||
18 | var loginButton; | 18 | var loginButton; |
19 | 19 | ||
20 | var participa = true; | 20 | var participa = true; |
21 | + | ||
22 | + //Detects for localhost settings | ||
23 | + var patt = new RegExp(":3000/"); | ||
24 | + if(patt.test(window.location.href)) | ||
25 | + participa = false; | ||
26 | + | ||
21 | if(participa){ | 27 | if(participa){ |
22 | var host = 'http://www.participa.br'; | 28 | var host = 'http://www.participa.br'; |
23 | var proposal_discussion = '103358'; //participa | 29 | var proposal_discussion = '103358'; //participa |