Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Prevent exception when cookies disabled #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/assets/javascripts/lib/native.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ if (typeof JSON !== 'object') {
console = window.console||undefined, // Prevent a JSLint complain
document = window.document, // Make sure we are using the correct document
navigator = window.navigator, // Make sure we are using the correct navigator
sessionStorage = window.sessionStorage||false, // sessionStorage
sessionStorage = false, // sessionStorage
setTimeout = window.setTimeout,
clearTimeout = window.clearTimeout,
setInterval = window.setInterval,
Expand All @@ -1318,6 +1318,7 @@ if (typeof JSON !== 'object') {
history = window.history; // Old History Object

try {
sessionStorage = window.sessionStorage;
sessionStorage.setItem('TEST', '1');
sessionStorage.removeItem('TEST');
} catch(e) {
Expand Down
1 change: 0 additions & 1 deletion wiselinks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]


gem.add_development_dependency 'rspec'
gem.add_development_dependency 'webmock', '~> 1.9.0'
gem.add_development_dependency 'shoulda'
gem.add_development_dependency 'simplecov'
Expand Down