Pachelbel 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/project/Pachelbel.rb +2 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 001bebb20613db8fbff8d9c21de721a651f9db14
|
4
|
+
data.tar.gz: 283c199573c4e70caab906029c5e18ed7e47933f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09215af533033edf5db0aeb8054820a3917414a1562f6bda450f9f5b25f1eab26e805431ca5d12620d2b63af537717a47d4e3f67dead81644ad9111f6750b799
|
7
|
+
data.tar.gz: 191b190b289e21c2d6d2a44cd0f50e534ed7771a989f2cf3448500e45255a4aa66fae8acbc3856dc085aceaf14014947b193c89b56f151142897c0229122bfc8
|
data/lib/project/Pachelbel.rb
CHANGED
@@ -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
|
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 '
|
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: _)
|