Skip to content

Commit

Permalink
fix(content): delay injecting css
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed May 30, 2018
1 parent 685ded1 commit a12e070
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import { MsgType } from '@/typings/message'

import './content.scss'

message.send({ type: MsgType.RequestCSS })
// Chrome fails to inject css via manifest if the page is loaded
// as "last opened tabs" when browser opens.
setTimeout(() => message.send({ type: MsgType.RequestCSS }), 1000)

const i18n = i18nLoader({ content: contentLocles, dict: dictsLocles }, 'content')

Expand Down

0 comments on commit a12e070

Please sign in to comment.