Created
April 9, 2018 09:49
-
-
Save dbismut/33d3b7f70b2aa5d1460d63059d5b3c74 to your computer and use it in GitHub Desktop.
Part 2 - Fixing one last glitch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* other imports */ | |
import browser from 'bowser'; // the browser import | |
/* ... */ | |
executeEnteringTransition = (node, done) => { | |
this.postStyler.set({ ...this.from, visibility: 'visible' }); | |
const hidePreview = () => (this.preview.style.visibility = 'hidden'); | |
if (browser.safari) setImmediate(hidePreview); | |
else hidePreview(); | |
/* same code */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment