Skip to content

Commit

Permalink
feat: disable git history in safari
Browse files Browse the repository at this point in the history
  • Loading branch information
ineo6 committed Nov 27, 2020
1 parent d24a92c commit f304752
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ContentScript/feature/history/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { isButtonInsertedGithub, isButtonInsertedGitlab } from './history';

export default (ctx: GitMaster) => {
const register = () => {
if (process.env.TARGET_BROWSER === 'safari') {
return;
}

ctx.helper.documentLoadedPlugins.register('github-history', {
async handle() {
isButtonInsertedGithub(document.URL);
Expand Down

0 comments on commit f304752

Please sign in to comment.