mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-13 05:06:30 +04:00
js modules updates
by Willy-JL
This commit is contained in:
@@ -20,9 +20,9 @@ static void ret_bad_args(struct mjs* mjs, const char* error) {
|
||||
|
||||
static JsKeyboardInst* get_this_ctx(struct mjs* mjs) {
|
||||
mjs_val_t obj_inst = mjs_get(mjs, mjs_get_this(mjs), INST_PROP_NAME, ~0);
|
||||
JsKeyboardInst* storage = mjs_get_ptr(mjs, obj_inst);
|
||||
furi_assert(storage);
|
||||
return storage;
|
||||
JsKeyboardInst* keyboard = mjs_get_ptr(mjs, obj_inst);
|
||||
furi_assert(keyboard);
|
||||
return keyboard;
|
||||
}
|
||||
|
||||
static void keyboard_callback(void* context) {
|
||||
|
||||
Reference in New Issue
Block a user