Pachelbel 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/project/Pachelbel.rb +2 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc981169af1c38a8fc37f1637b0015e7d6dc668e
4
- data.tar.gz: 17631bac320f9f33f5954aae41c67b16c8ec52b3
3
+ metadata.gz: 001bebb20613db8fbff8d9c21de721a651f9db14
4
+ data.tar.gz: 283c199573c4e70caab906029c5e18ed7e47933f
5
5
  SHA512:
6
- metadata.gz: 4163fecf2f5678c5fd02c27e35c3768da69bde62400642105b6287a0c7bd86a732a73f33b5ed6376023b03bb1cda7a75800e53661146b7648f43bceba1cd288b
7
- data.tar.gz: 27bc1612bc04e1227846eed3bd57a4c192e77cd93de0be2270803b81b9af11aa29704c9df0323ef15c8549f6b54ed990e2b6190a07b2537deca37c1f66f491c6
6
+ metadata.gz: 09215af533033edf5db0aeb8054820a3917414a1562f6bda450f9f5b25f1eab26e805431ca5d12620d2b63af537717a47d4e3f67dead81644ad9111f6750b799
7
+ data.tar.gz: 191b190b289e21c2d6d2a44cd0f50e534ed7771a989f2cf3448500e45255a4aa66fae8acbc3856dc085aceaf14014947b193c89b56f151142897c0229122bfc8
@@ -26,19 +26,9 @@ module Pachelbel
26
26
  run_js 'var unlock_iframe = document.createElement("IFRAME");
27
27
  unlock_iframe.setAttribute("src", "let://freedom.ring");'
28
28
 
29
- run_js 'var unlocked_function = function() { document.documentElement.appendChild(unlock_iframe); }'
29
+ run_js 'var pollster = function() { if (audio_context.currentTime === 0) { setTimeout(pollster, 0); } else { document.documentElement.appendChild(unlock_iframe); } }'
30
30
 
31
- run_js 'var pollster = function() { if (audio_context.currentTime === 0) { setTimeout(pollster, 0); } else { unlocked_function(); } }'
32
-
33
- run_js 'var unlocker_function = function() { audio_context.createOscillator().noteOn(0); setTimeout(pollster, 0); }'
34
-
35
- case UIDevice.currentDevice.systemVersion[0]
36
- when '7'
37
- run_js 'unlocker_function();'
38
- when '6'
39
- run_js "var touch_function = function() { window.removeEventListener('touchstart', touch_function, false); unlocker_function(); }"
40
- run_js "window.addEventListener('touchstart', touch_function, false);"
41
- end
31
+ run_js 'audio_context.createOscillator().noteOn(0); setTimeout(pollster, 0);'
42
32
  end
43
33
 
44
34
  def webView(_, shouldStartLoadWithRequest: request, navigationType: _)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pachelbel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Carey Buglione