Skip to content

Commit

Permalink
Chrome: Per user local preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Aug 22, 2017
1 parent 60f0e0a commit f17cbd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion editor/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import storePersist from './store-persist';
/**
* Module constants
*/
const GUTENBERG_PREFERENCES_KEY = 'GUTENBERG_PREFERENCES';
const GUTENBERG_PREFERENCES_KEY = `GUTENBERG_PREFERENCES_${ window.userSettings.uid }`;

/**
* Creates a new instance of a Redux store.
Expand Down
3 changes: 3 additions & 0 deletions test/setup-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ global.window.localStorage = {
getItem: ( key ) => key in storage ? storage[ key ] : null,
setItem: ( key, value ) => storage[ key ] = value,
};

// UserSettings global
global.window.userSettings = { uid: 1 };

0 comments on commit f17cbd0

Please sign in to comment.