Skip to content

Commit

Permalink
extension: sidebar: prevent blinking within the page during initialis…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
karlicoss committed Feb 4, 2023
1 parent 9e54f1a commit c1c65d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension/src/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class Sidebar {
}

const sidebar = doc.createElement('iframe')
sidebar.style.display = 'none' // prevent flickering while iframe is being initialised
const isFirefox = window.navigator.userAgent.indexOf('Firefox') != -1
if (isFirefox) {
// under firefox, if src is set after appendChild, it ceases to be bfcache friendly for some reason
Expand Down

0 comments on commit c1c65d8

Please sign in to comment.