Compare commits
3 Commits
v0.2.0-dev
...
v0.2.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 00ad1be917 | |
Derrick Hammer | 61c535d8cb | |
Derrick Hammer | 79273d263b |
|
@ -1,3 +1,10 @@
|
|||
# [0.2.0-develop.19](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.18...v0.2.0-develop.19) (2023-06-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* switch to using globalThis, and check if we have localStorage (if not, might be node) ([79273d2](https://git.lumeweb.com/LumeWeb/libweb/commit/79273d263b9f65dbe4faf369fa936e8d746d81d2))
|
||||
|
||||
# [0.2.0-develop.18](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.17...v0.2.0-develop.18) (2023-06-26)
|
||||
|
||||
# [0.2.0-develop.17](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.16...v0.2.0-develop.17) (2023-06-26)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.18",
|
||||
"version": "0.2.0-develop.19",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.18",
|
||||
"version": "0.2.0-develop.19",
|
||||
"dependencies": {
|
||||
"@lumeweb/community-portals": "^0.1.0-develop.4",
|
||||
"@lumeweb/libportal": "^0.2.0-develop.10",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libweb",
|
||||
"version": "0.2.0-develop.18",
|
||||
"version": "0.2.0-develop.19",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
|
|
|
@ -75,7 +75,11 @@ export function initPortal(portal: Portal): Client {
|
|||
}
|
||||
|
||||
export function getPortalSessions() {
|
||||
let portalSessionsData = window.localStorage.getItem("portals");
|
||||
if (typeof globalThis.localStorage === "undefined") {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
let portalSessionsData = globalThis.localStorage.getItem("portals");
|
||||
let portalSessions: PortalSessionsStore = {};
|
||||
if (portalSessions) {
|
||||
portalSessions = JSON.parse(
|
||||
|
|
Loading…
Reference in New Issue