noreferrer 0.13 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
data/noreferrer.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "noreferrer"
7
- gem.version = 0.13
7
+ gem.version = 0.14
8
8
  gem.authors = ["Rodney Carvalho"]
9
9
  gem.email = ["rcarvalho@atlantistech.com"]
10
10
  gem.description = "Removes referrer information on an html link."
@@ -20,12 +20,12 @@
20
20
  }
21
21
  $(document.body).on('click', selector, function(e){
22
22
  if(matches == undefined){
23
- NoReferrer.Link.go($(this).attr('data-url'), $(this).attr('target'));
23
+ NoReferrer.Link.go($(this).attr('data-url'), $(this).attr('data-target'));
24
24
  }
25
25
  else{
26
26
  for(i=0;i<matches.length;i++){
27
27
  if(new RegExp(matches[i]).test($(this).attr('data-url'))){
28
- NoReferrer.Link.go($(this).attr('data-url'), $(this).attr('target'));
28
+ NoReferrer.Link.go($(this).attr('data-url'), $(this).attr('data-target'));
29
29
  }
30
30
  }
31
31
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noreferrer
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.13'
4
+ version: '0.14'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: