framework7
Advanced tools
Comparing version 8.3.2 to 8.3.3
/** | ||
* Framework7 8.3.2 | ||
* Framework7 8.3.3 | ||
* Full featured mobile HTML framework for building iOS & Android apps | ||
@@ -10,3 +10,3 @@ * https://framework7.io/ | ||
* | ||
* Released on: February 27, 2024 | ||
* Released on: March 25, 2024 | ||
*/ | ||
@@ -13,0 +13,0 @@ |
/** | ||
* Framework7 8.3.2 | ||
* Framework7 8.3.3 | ||
* Full featured mobile HTML framework for building iOS & Android apps | ||
@@ -10,3 +10,3 @@ * https://framework7.io/ | ||
* | ||
* Released on: February 27, 2024 | ||
* Released on: March 25, 2024 | ||
*/ | ||
@@ -13,0 +13,0 @@ |
/** | ||
* Framework7 8.3.2 | ||
* Framework7 8.3.3 | ||
* Full featured mobile HTML framework for building iOS & Android apps | ||
@@ -10,3 +10,3 @@ * https://framework7.io/ | ||
* | ||
* Released on: February 27, 2024 | ||
* Released on: March 25, 2024 | ||
*/ | ||
@@ -13,0 +13,0 @@ |
/** | ||
* Framework7 8.3.2 | ||
* Framework7 8.3.3 | ||
* Full featured mobile HTML framework for building iOS & Android apps | ||
@@ -10,3 +10,3 @@ * https://framework7.io/ | ||
* | ||
* Released on: February 27, 2024 | ||
* Released on: March 25, 2024 | ||
*/ | ||
@@ -13,0 +13,0 @@ |
@@ -583,3 +583,4 @@ import { getDocument } from 'ssr-window'; | ||
if (!navigateOptions.force && $previousPage.length && !skipMaster) { | ||
if (router.params.browserHistory && $previousPage[0].f7Page && router.history[router.history.length - 2] !== $previousPage[0].f7Page.route.url) { | ||
const previousPageObj = $previousPage[0].f7Page; | ||
if (router.params.browserHistory && previousPageObj && router.history[router.history.length - 2] !== previousPageObj.route.url) { | ||
router.back(router.history[router.history.length - 2], extend(navigateOptions, { | ||
@@ -591,11 +592,13 @@ force: true, | ||
} | ||
const previousPageRoute = $previousPage[0].f7Page.route; | ||
processRouteQueue.call(router, previousPageRoute, router.currentRoute, () => { | ||
loadBack(router, { | ||
el: $previousPage | ||
}, extend(navigateOptions, { | ||
route: previousPageRoute | ||
})); | ||
}, () => {}, 'backward'); | ||
return router; | ||
if (previousPageObj) { | ||
const previousPageRoute = previousPageObj.route; | ||
processRouteQueue.call(router, previousPageRoute, router.currentRoute, () => { | ||
loadBack(router, { | ||
el: $previousPage | ||
}, extend(navigateOptions, { | ||
route: previousPageRoute | ||
})); | ||
}, () => {}, 'backward'); | ||
return router; | ||
} | ||
} | ||
@@ -602,0 +605,0 @@ |
{ | ||
"name": "framework7", | ||
"version": "8.3.2", | ||
"version": "8.3.3", | ||
"description": "Full featured mobile HTML framework for building iOS & Android apps", | ||
@@ -457,3 +457,3 @@ "type": "module", | ||
}, | ||
"releaseDate": "February 27, 2024" | ||
"releaseDate": "March 25, 2024" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { getWindow } from 'ssr-window'; | ||
import { getWindow, getDocument } from 'ssr-window'; | ||
import { getSupport } from './get-support.js'; | ||
@@ -126,2 +126,11 @@ let deviceCalculated; | ||
} | ||
const IS_BROWSER = (() => { | ||
const document = getDocument(); | ||
try { | ||
// eslint-disable-next-line no-restricted-globals | ||
return Boolean(document && document.body && document.body.getBoundingClientRect && document.body.getBoundingClientRect().width > 0); | ||
} catch (e) { | ||
return false; | ||
} | ||
})(); | ||
function getDevice(overrides, reset) { | ||
@@ -131,2 +140,5 @@ if (overrides === void 0) { | ||
} | ||
if (reset === void 0) { | ||
reset = IS_BROWSER; | ||
} | ||
if (!deviceCalculated || reset) { | ||
@@ -133,0 +145,0 @@ deviceCalculated = calcDevice(overrides); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14645383
145130