Skip to content

Commit

Permalink
update private browsing detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Obinwanne Hill committed Nov 18, 2015
1 parent 3635ba3 commit 0bd84bf
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 24 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 1.3.6
- Update private browsing detection

## 1.3.5
- Update user agent string regular expression in getUserAgent method of Restive class

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "restive",
"version": "1.3.4",
"version": "1.3.6",
"homepage": "https://github.com/obihill/restive.js",
"authors": [
"Obinwanne Hill <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion restive.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "restive",
"version": "1.3.4",
"version": "1.3.6",
"title": "Restive.JS",
"author": {
"name": "Obinwanne Hill",
Expand Down
15 changes: 9 additions & 6 deletions restive.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ function microtime (get_as_float) {
return MD5_hexhash(s);
}
})();


/*! json2.js | @link https://github.com/douglascrockford/JSON-js | @copyright Douglas Crockford <[email protected]> */

// Create a JSON object only if one does not already exist. We create the
Expand Down Expand Up @@ -1291,7 +1291,7 @@ if (typeof JSON !== 'object') {

})( this );



/*! jQuery resize event - v1.1 | @link http://benalman.com/projects/jquery-resize-plugin/ | Copyright (c) 2010 "Cowboy" Ben Alman | @license MIT/GPL */
// Script: jQuery resize event
//
Expand Down Expand Up @@ -1917,7 +1917,7 @@ function getUrl()

})(jQuery);



/*! Restive.JS | @copyright 2013 Obinwanne Hill */
var Restive = (function(window, document, $) {

Expand Down Expand Up @@ -2132,7 +2132,10 @@ var Restive = (function(window, document, $) {
}
catch (e)
{
if (/QUOTA_?EXCEEDED/i.test(e.name)) {
var is_local_storage_notset_bool = /localStorage.*?(undefined|denied|null)|setItem.*?(undefined|null)|security *error.*?dom +exception +18/i.test(e.message);
var is_quota_exceeded_bool = /quota.*?(exceeded|reached)/i.test(e.name);

if (is_local_storage_notset_bool || is_quota_exceeded_bool) {
return true;
}
}
Expand Down Expand Up @@ -2231,7 +2234,7 @@ var Restive = (function(window, document, $) {
}
catch(e){
alert(e);

console.log(e);
}
}

Expand Down Expand Up @@ -4565,7 +4568,7 @@ var Restive = (function(window, document, $) {
return Restive;

})(window, document, jQuery);


/*
* Restive.JS Plugin v1.3.3
* http://restivejs.com
Expand Down
18 changes: 2 additions & 16 deletions restive.min.js

Large diffs are not rendered by default.

0 comments on commit 0bd84bf

Please sign in to comment.