@data-fair/lib-vue 1.15.1 → 1.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/session.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vue",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
package/session.js CHANGED
@@ -262,7 +262,7 @@ export async function getSession (initOptions) {
262
262
  // immediately performs a keepalive, but only on top windows (not iframes or popups)
263
263
  // and only if it was not done very recently (maybe from a refreshed page next to this one)
264
264
  // also run an auto-refresh loop
265
- if (!ssr && !inIframe) {
265
+ if (!ssr && !inIframe && !('triggerCapture' in window)) {
266
266
  const lastKeepalive = window.localStorage.getItem('sd-keepalive' + options.sitePath)
267
267
  // check cookies.get('id_token') not state.user so that we do a keepalive on expired id tokens
268
268
  if (cookies.get('id_token') && (!lastKeepalive || (new Date().getTime() - Number(lastKeepalive)) > 10000)) {