File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Proxino.log("gg.js domain was " + document.domain);
2
2
// weird, was ggtracker.com even though script was served via CDN
3
- document . domain = / ( \w + ) ( .\w + ) ? $ / . exec ( location . hostname ) [ 0 ] ;
3
+ if ( location . hostname . match ( / ^ [ 0 - 9 . ] * $ / ) == null ) {
4
+ // only set document.domain if our location is a hostname like ggtracker.com or
5
+ // ggtracker.test. But if it's an IP address, dont bother.
6
+ document . domain = / ( \w + ) ( .\w + ) ? $ / . exec ( location . hostname ) [ 0 ] ;
7
+ }
4
8
// Proxino.log("now gg.js domain is " + document.domain);
Original file line number Diff line number Diff line change 11
11
< h2 > < a href ="/players/<%= @identity . id %> / <%= @identity . name %> "> <%= @identity . name %> </ a > < span ng-show ="<%= @prolevel %> > 0 " class ="djcloak icon icon-star-white-32 "> </ span > <!--<span class="tiny prolabel">PRO</span>--> </ h2 >
12
12
< div class ="links ">
13
13
<%= link_to ( 'bnet' , @identity . profile_url , { :class => 'bnet' } ) if @identity . profile_url . present? %>
14
- <%= link_to ( 'sc2ranks' , @identity . sc2ranks_url ) if @identity . sc2ranks_url . present? %>
15
14
<% if controller . superuser? %>
16
15
<%= link_to ( '+1Month' , :controller => :players , :action => :give_one_month_ggtracker_pro ) %>
17
16
<% end %>
You can’t perform that action at this time.
0 commit comments