Trouble with async await when using Type 2 References

Hi Curran,

I am having a problem in my code due to not being able to implement async await. I tried but ti didnt work.

Basically I am using a Pythonic sequential approach to load 3 files and then run the namespace in the working.js.

OS-Threat UI (vizhub.com)

As you can see if you run my code, when the working pane namespace is run, it happens before the promise is fulfilled. If this code was in Python, then it would work, but JavaScript’s async nature is bedevilling me.

The issue is the file loading code in index.js, lines 141-147, and then the function run command on line 151. What am i doing wrong?? How should it be set up so the promise for each of the 3 files is fulfilled before the function is called??? What is the best approach??