Pachelbel 1.1.3 → 1.1.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 -2
- 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: 0df6394a20d061b0abe1a68a0cb3592649898dae
|
4
|
+
data.tar.gz: 95d5cd1183ab4e39196aac40d42cbabfb5b2072a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cbeb9745c2bbc4a3d32432fe32cc3475e40064629d1f3cc9e770680c445728cfa69d32d07d00e4ed17f1ca52df2601fe8c7977d62db23b6889061018f01b921
|
7
|
+
data.tar.gz: e50146109c9bdd4b7178d54e3cdcd815a714bf32d9da8ddbc3d21289da4d485067a5f78f3e102f7240f7cbc7478343fab9cc925ec7416a75ab4b283e160b8063
|
data/lib/project/Pachelbel.rb
CHANGED
@@ -7,7 +7,7 @@ module Pachelbel
|
|
7
7
|
'var audio_context = new AudioContext();' + 'var audio_nodes = [audio_context.destination];' + '</script>'
|
8
8
|
|
9
9
|
def on_ready(&block)
|
10
|
-
@locked ? @on_ready.push(block) :
|
10
|
+
@locked ? @on_ready.push(block) : yield
|
11
11
|
end
|
12
12
|
|
13
13
|
def run_js(script)
|
@@ -23,7 +23,7 @@ module Pachelbel
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def webViewDidFinishLoad(_)
|
26
|
-
run_js 'audio_context.createOscillator();' # workaround to start timer
|
26
|
+
run_js 'audio_context.createOscillator().noteOn(0);' # workaround to start timer
|
27
27
|
|
28
28
|
run_js 'var unlock_iframe = document.createElement("IFRAME");
|
29
29
|
unlock_iframe.setAttribute("src", "let://freedom.ring");'
|