Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
BugFix - removed xdomain_cookie.html hash rewrite which caused errors…
Browse files Browse the repository at this point in the history
… with back button

When browsing a website with the xdomain cookie installed, hitting the back button would
load the cached version of the site, which had xdomain_cookie.html#ready as the path for
the HTML file, resulting in a JSON decode error when the html iframe page tried to pull
the hash_data and do a JSON decode on 'ready'
  • Loading branch information
ecaroth committed Jan 27, 2017
1 parent 1a859c0 commit 3ab77df
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dev/xdomain_cookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
_iframe_origin = _hash_data.iframe_origin,
_debug = _hash_data.debug;

window.location.hash = "#ready";

function _log(){
if(!_debug) return;
arguments[0] = ":XDC_IFR: "+arguments[0];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xdomain-cookies",
"version": "1.0.6",
"version": "1.0.7",
"repository": {
"type": "git",
"url": "git+https://github.com/contently/xdomain-cookies"
Expand Down
2 changes: 0 additions & 2 deletions src/xdomain_cookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
_iframe_origin = _hash_data.iframe_origin,
_debug = _hash_data.debug;

window.location.hash = "#ready";

function _log(){
if(!_debug) return;
arguments[0] = ":XDC_IFR: "+arguments[0];
Expand Down
2 changes: 1 addition & 1 deletion src/xdomain_cookie.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Version 1.0.6 xdomain-cookies (http://contently.github.io/xdomain-cookies/) from Contently (https://github.com/contently) */
/* Version 1.0.7 xdomain-cookies (http://contently.github.io/xdomain-cookies/) from Contently (https://github.com/contently) */

(function(exports) {
"use strict";
Expand Down
2 changes: 1 addition & 1 deletion src/xdomain_cookie.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ab77df

Please sign in to comment.