Skip to content

Instantly share code, notes, and snippets.

@dbismut
Created April 9, 2018 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbismut/33d3b7f70b2aa5d1460d63059d5b3c74 to your computer and use it in GitHub Desktop.
Save dbismut/33d3b7f70b2aa5d1460d63059d5b3c74 to your computer and use it in GitHub Desktop.
Part 2 - Fixing one last glitch
/* 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