You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In omega-web/src/popup/js/profiles.js, need to define vars before $script.ready otherwise will get error when run updateMenuByState
functionupdateMenuByState(){
...
addProfilesItems(state);
...
}functionaddProfilesItems(state){
...
varprofiles=Object.keys(state.availableProfiles).map(function(key){returnstate.availableProfiles[key];}).sort(compareProfile);
...
}functioncompareProfile(a,b){vardiff;diff=(orderForType[a.profileType]|0)-(orderForType[b.profileType]|0);// get error that orderForType is undefined here
...
}
which will lead to empty list.
The text was updated successfully, but these errors were encountered:
In
omega-web/src/popup/js/profiles.js
, need to define vars before$script.ready
otherwise will get error when runupdateMenuByState
which will lead to empty list.
The text was updated successfully, but these errors were encountered: