Skip to content
Snippets Groups Projects
Commit b31e126b authored by Timo Nachstedt's avatar Timo Nachstedt
Browse files

Ensure process is defined in version check

To allow for user agents which contain "electron" within their name but do not run within a node.js context, we need to check if the process object is defined at all before accessing its properties.

In particular, this is required to run diagrams.net within a Visual Studio Code webview extension.
parent 8bf37213
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment