Skip to content

Commit

Permalink
Merge pull request #399 from alphagov/fix-safari-private-browsing
Browse files Browse the repository at this point in the history
Fix JS error in Safari’s Private Browsing mode
  • Loading branch information
36degrees authored Jun 13, 2017
2 parents 3364017 + 109da2d commit ed08391
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
/* global GOVUK */

// Warn about using the kit in production
if (
window.sessionStorage && window.sessionStorage.getItem('prototypeWarning') !== 'false' &&
window.console && window.console.info
) {
if (window.console && window.console.info) {
window.console.info('GOV.UK Prototype Kit - do not use for production')
window.sessionStorage.setItem('prototypeWarning', true)
}

$(document).ready(function () {
Expand Down

0 comments on commit ed08391

Please sign in to comment.