tmin_test 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Tminus
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
@@ -35,10 +35,19 @@
35
35
  match = host.match(regexp);
36
36
 
37
37
  if(match) {
38
+ function simulateClick(elId) {
39
+ var evt;
40
+ var el = document.getElementById(elId);
41
+ if (document.createEvent) {
42
+ evt = document.createEvent("MouseEvents");
43
+ evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
44
+ }
45
+ (evt) ? el.dispatchEvent(evt) : (el.click && el.click());
46
+ }
47
+ var button = document.getElementById("applink1")
38
48
  simulateClick("applink1");
39
49
  }
40
50
  else {
41
-
42
51
  document.getElementById("applink1").onclick = applink(appstorefail);
43
52
  var button = document.getElementById("applink1")
44
53
  simulateClick("applink1");
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tmin_test
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - drobs