I have implemented userStorage as per this thread and now my code is working perfectly on AoG simulator but when running on dialogflow simulator, I am encountering the error as
Cannot read property 'userStorage' of undefined
Now how to make the code work on both the simulators as I want the web demo for the chatbot I am building and DialogFlow provides me the ability but the code is modified only for AoG Simulator. How to resolve this issue?
The gist of the code I want to change is here.
Thanks for the help.