Skip to content

Commit

Permalink
Set zoom before page load is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh9 committed May 5, 2023
1 parent 6725abf commit f2560f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ chrome.tabs.onCreated.addListener((tab) => {
// Apply the stored zoom level to all updated tabs when they are refreshed
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
console.log('------- Tab refreshed -------');
if (changeInfo.status === 'complete') {
setZoomToTargetLevelInGivenTab(tabId);
}
setZoomToTargetLevelInGivenTab(tabId);
});

function setZoomToTargetLevelInGivenTab(tabId) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Zoom Toggler",
"version": "0.0.3",
"version": "0.0.4",
"description": "Quickly toggle browser page zoom between two levels",
"permissions": [
"storage",
Expand Down

0 comments on commit f2560f8

Please sign in to comment.