Skip to content

Commit

Permalink
Fix: Use offlineStorage directly instead of Adapt.offlineStorage (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Apr 15, 2024
1 parent 208d697 commit ac8d335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/languagePickerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class LanguagePickerModel extends Backbone.Model {
*/
onDataLoaded() {
const shouldReset = !this.get('_restoreStateOnLanguageChange');
const hasOfflineStorageClear = Boolean(Adapt.offlineStorage.clear);
const hasOfflineStorageClear = Boolean(offlineStorage.clear);
if (hasOfflineStorageClear || shouldReset) return;
// Deprecated legacy restoration mechanism
// Not compatible with branching / trickle
Expand Down

0 comments on commit ac8d335

Please sign in to comment.