# Script editor for Generic Devices Not Working

**URL:** <https://community.folivora.ai/t/script-editor-for-generic-devices-not-working/30613>\
**Category:** Bugs or Unexpected Behavior\
**Tags:** real-javascript, generic-devices\
**Created:** [March 2, 2023, 7:19pm UTC](https://community.folivora.ai/t/script-editor-for-generic-devices-not-working/30613 "2023-03-02T19:19:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exclusiveintegral](https://community.folivora.ai/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@Exclusiveintegral](https://community.folivora.ai/u/Exclusiveintegral)\
**Post date:** [March 2, 2023, 7:19pm UTC](https://community.folivora.ai/t/script-editor-for-generic-devices-not-working/30613/1 "2023-03-02T19:19:12Z")

</div>

I'm trying to add an input device under Generic devices. When clicking "Parse Device Input/Output" the analyzer window pops up. Unfortunately the scripting editor is greyed out and unavailable.

 ![Screen Shot 2023-03-02 at 11.11.44](https://community.folivora.ai/uploads/default/original/3X/9/c/9c73e098159aeeff337fbdc254357294ca798f58.png)

I right clicked the editor area and selected "Inspect Element". There are 3 errors:

 ![Screen Shot 2023-03-02 at 11.15.45](https://community.folivora.ai/uploads/default/original/3X/6/9/6917b4c02e726e18d7f9f8051a77d941728996a1.png)

SyntaxError: Unexpected token ';'. Expected an opening '(' before a method's parameter list.

ReferenceError: Can't find variable: monaco

Failed to load error. I searched inside the BTT app and sure enough there is no "min-maps" folder or "loader.js.map" file.

I'm assuming these are the reason the editor doesn't work.

**Device information:**

- iMac (Retina 4K, 21.5-inch, 2019)
- macOS Catalina 10.15.7
- BetterTouchTool version: Version 4.053 (2272)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 2, 2023, 7:25pm UTC](https://community.folivora.ai/t/script-editor-for-generic-devices-not-working/30613/2 "2023-03-02T19:25:35Z")

</div>

unfortunately I think th he webview on 10.15 doesn't support losing the Javs Script due to a bug that has been fixed on macOS 11 or 12 ;-(

Is there a reason you are staying in 10.15?

---

<div class="post-metadata">

**Author:** ![Exclusiveintegral](https://community.folivora.ai/letter_avatar_proxy/v4/letter/e/da6949/32.png) [@Exclusiveintegral](https://community.folivora.ai/u/Exclusiveintegral)\
**Post date:** [March 2, 2023, 7:52pm UTC](https://community.folivora.ai/t/script-editor-for-generic-devices-not-working/30613/3 "2023-03-02T19:52:10Z")

</div>

I use my Mac for music production so I'm slow to update for fear of losing/breaking plugins/software 😕

Are you saying the errors I found in the app are unrelated?  
The file it's trying to load doesn't exist inside the app.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 2, 2023, 7:56pm UTC](https://community.folivora.ai/t/script-editor-for-generic-devices-not-working/30613/4 "2023-03-02T19:56:34Z")

</div>

the map file is not necessary, that's why it's not included. The problem is the errors before that, the editor seems to use some Java Script features that were not available on macOS 10.15 ;-/

I'll check whether there are some polyfills that could make it work with old Safari.
