Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Safari TopSites Preview Detection
if (window.navigator && window.navigator.loadPurpose === "preview") {
window.location.href = "https://www.icloud.com/topsites_preview/"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment