Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Uncaught TypeError: ContextHub.getStore is not a function

anuj_pathak1
Level 3
Level 3

When we are trying to get/set context hub data to a store, it is throwing this exception Uncaught TypeError: ContextHub.getStore is not a function

we are loading login.js (which has that code throwing exception ) is loaded after the context hub kernel JS

this is exact line which throws this error

ContextHub.getStore('servicenow-sso').setItem('userName',  xxyyzz);

this is happening only in Chrome when we try to reload page (to trigger some custom auth handle class) using window.location.reload() method.

Same code/functionality when tested on Safari browser works fine with no such error.

Any suggestion or help on what could be causing this issue?

0 Replies