Skip to content

Commit 5ab41f9

Browse files
committed
Make mandelbrot.py work without browser module
1 parent 40ef62d commit 5ab41f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wasm/demo/snippets/mandelbrot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from browser import request_animation_frame
1+
try:
2+
from browser import request_animation_frame
3+
except:
4+
def request_animation_frame(cb): cb()
25

36
w = 50.0
47
h = 50.0

0 commit comments

Comments
 (0)