Skip to content

Commit

Permalink
Use brave_settings_overrides to replace the values used for Zoom
Browse files Browse the repository at this point in the history
This updates the second of 3 places needing to be changed (working through last one)
  • Loading branch information
bsclifton committed Nov 27, 2019
1 parent e3b534c commit 589db3f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
29 changes: 29 additions & 0 deletions browser/resources/settings/brave_settings_overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,37 @@ const BraveClearSettingsMenuHighlightBehavior = {
}
}

const BraveAddZoomLevelsBehavior = {
ready: function() {
this._setPageZoomLevels_([
1 / 4,
1 / 3,
1 / 2,
2 / 3,
3 / 4,
4 / 5,
9 / 10,
1,
11 / 10,
5 / 4,
4 / 3,
7 / 5,
3 / 2,
7 / 4,
2,
5 / 2,
3,
4,
5,
])
}
}

// Polymer Component Behavior injection (like superclasses)
BravePatching.RegisterPolymerComponentBehaviors({
'settings-appearance-page': [
BraveAddZoomLevelsBehavior
],
'settings-clear-browsing-data-dialog': [
BraveClearBrowsingDataOnExitBehavior
],
Expand Down

This file was deleted.

0 comments on commit 589db3f

Please sign in to comment.