diff --git a/README.md b/README.md index 6842f5b..d1aaa7c 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ Sysend.js logo

-[![npm](https://img.shields.io/badge/npm-1.17.3-blue.svg)](https://www.npmjs.com/package/sysend) -![bower](https://img.shields.io/badge/bower-1.17.3-yellow.svg) +[![npm](https://img.shields.io/badge/npm-1.17.4-blue.svg)](https://www.npmjs.com/package/sysend) +![bower](https://img.shields.io/badge/bower-1.17.4-yellow.svg) ![downloads](https://img.shields.io/npm/dt/sysend.svg) [![jsdelivr](https://img.shields.io/jsdelivr/npm/hm/sysend)](https://www.jsdelivr.com/package/npm/sysend) @@ -56,7 +56,7 @@ You can also use the HTTP header: Origin-Trial: ``` -Right now the API only works with localStorage fallback (when inside iframes). +Right now, the API only works with localStorage fallback (when inside iframes). ## Installation diff --git a/sysend.js b/sysend.js index 589ea7c..c0b0c6d 100644 --- a/sysend.js +++ b/sysend.js @@ -1,5 +1,5 @@ /**@license - * sysend.js - send messages between browser windows/tabs version 1.17.3 + * sysend.js - send messages between browser windows/tabs version 1.17.4 * * Copyright (C) 2014 Jakub T. Jankiewicz * Released under the MIT license @@ -865,7 +865,8 @@ // ------------------------------------------------------------------------- function init() { if (is_function(window.BroadcastChannel)) { - if (is_secured_iframe() && document.requestStorageAccess) { + const ssa = document.requestStorageAccess && 'hasUnpartitionedCookieAccess' in document; + if (is_secured_iframe() && ssa) { document.requestStorageAccess({ all: true }).then(function(handle) {