Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var is_safari = navigator.userAgent.indexOf("Safari") > -1;
- // Chrome has Safari in the user agent so we need to filter (https://stackoverflow.com/a/7768006/1502448)
- var is_chrome = navigator.userAgent.indexOf('Chrome') > -1;
- if ((is_chrome) && (is_safari)) {is_safari = false;}
- if (is_safari) {
- // See if cookie exists (https://stackoverflow.com/a/25617724/1502448)
- if (!document.cookie.match(/^(.*;)?\s*fixed\s*=\s*[^;]+(.*)?$/)) {
- // Set cookie to maximum (https://stackoverflow.com/a/33106316/1502448)
- document.cookie = 'fixed=fixed; expires=Tue, 19 Jan 2038 03:14:07 UTC; path=/';
- window.location.replace("https://www.davincivirtual.com/_safari_fix.html");
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement