Skip to content

Commit

Permalink
fix edge browser
Browse files Browse the repository at this point in the history
  • Loading branch information
ety001 committed Feb 5, 2020
1 parent 8da5c56 commit 437cebf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
}
}
}
if (tab.url === 'edge://newtab/') {
if (store.getters.config.mini === false) {
const url = chrome.runtime.getURL('tab/tab.html');
chrome.tabs.update(tabId, { url });
}
}
});

// 生成uid
Expand Down

0 comments on commit 437cebf

Please sign in to comment.