Skip to content

Commit

Permalink
Remove tooltip.css load attempt
Browse files Browse the repository at this point in the history
- This stylesheet doesn't even exist. Spams console.error
  • Loading branch information
poltak committed Feb 27, 2024
1 parent f288686 commit 2c36754
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/content-scripts/content_script/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ import {
} from 'src/in-page-ui/tooltip/content_script/interactions'
import { conditionallyShowOnboardingNotifications } from 'src/in-page-ui/tooltip/onboarding-interactions'
import { insertTutorial } from 'src/in-page-ui/tooltip/content_script/tutorialInteractions'
import { browser } from 'webextension-polyfill-ts'
import type { InPageUIRootMount } from 'src/in-page-ui/types'
import { createInPageUI, destroyInPageUI } from 'src/in-page-ui/utils'
import { IGNORE_CLICK_OUTSIDE_CLASS } from '../constants'

export const main: TooltipScriptMain = async (options) => {
const cssFile = browser.runtime.getURL(`/content_script_tooltip.css`)
let mount: InPageUIRootMount | null = null
const createMount = () => {
if (!mount) {
mount = createInPageUI('tooltip', cssFile, [
mount = createInPageUI('tooltip', null, [
IGNORE_CLICK_OUTSIDE_CLASS,
])
}
Expand Down

0 comments on commit 2c36754

Please sign in to comment.