Browse Source

serve nipplejs locally

Falko Schindler 3 years ago
parent
commit
bbe3458245
2 changed files with 5 additions and 3 deletions
  1. 1 3
      nicegui/elements/joystick.py
  2. 4 0
      nicegui/static/lib/nipplejs.min.js

+ 1 - 3
nicegui/elements/joystick.py

@@ -6,9 +6,7 @@ class JoystickView(CustomView):
 
     def __init__(self, on_start, on_move, on_end, **options):
 
-        super().__init__('joystick', __file__, [
-            'https://cdn.jsdelivr.net/npm/nipplejs@0.9.0/dist/nipplejs.min.js',
-        ], **options)
+        super().__init__('joystick', __file__, ['static/lib/nipplejs.min.js'], **options)
 
         self.on_start = on_start
         self.on_move = on_move

File diff suppressed because it is too large
+ 4 - 0
nicegui/static/lib/nipplejs.min.js


Some files were not shown because too many files changed in this diff