Skip to content

Commit

Permalink
Fix new reference to uiSettings.subscribe()
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Sep 5, 2018
1 parent 8558c2e commit de78310
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const uiSettings = chrome.getUiSettingsClient();
setDefaultTimezone(uiSettings.get('dateFormat:tz'));
setStartDayOfWeek(uiSettings.get('dateFormat:dow'));

uiSettings.subscribe(({ key, newValue }) => {
uiSettings.getUpdate$().subscribe(({ key, newValue }) => {
if (key === 'dateFormat:tz') {
setDefaultTimezone(newValue);
} else if (key === 'dateFormat:dow') {
Expand Down

0 comments on commit de78310

Please sign in to comment.