Compare commits

..

No commits in common. "v0.2.0-develop.29" and "v0.2.0-develop.28" have entirely different histories.

4 changed files with 5 additions and 18 deletions

View File

@ -1,10 +1,3 @@
# [0.2.0-develop.29](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.28...v0.2.0-develop.29) (2023-08-10)
### Bug Fixes
* handle localStorage being undefined ([0ab6cf0](https://git.lumeweb.com/LumeWeb/libweb/commit/0ab6cf0ff095209f0a4d83c4295ecd5558de8a89))
# [0.2.0-develop.28](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.27...v0.2.0-develop.28) (2023-08-10)
# [0.2.0-develop.27](https://git.lumeweb.com/LumeWeb/libweb/compare/v0.2.0-develop.26...v0.2.0-develop.27) (2023-07-21)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libweb",
"version": "0.2.0-develop.29",
"version": "0.2.0-develop.28",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libweb",
"version": "0.2.0-develop.29",
"version": "0.2.0-develop.28",
"dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "0.2.0-develop.17",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libweb",
"version": "0.2.0-develop.29",
"version": "0.2.0-develop.28",
"main": "lib/index.js",
"type": "module",
"repository": {

View File

@ -120,17 +120,11 @@ export function savePortals() {
url: item.portalUrl,
} as Portal;
});
if (typeof globalThis.localStorage !== "undefined") {
globalThis.localStorage.setItem("portals", JSON.stringify(portals));
}
window.localStorage.setItem("portals", JSON.stringify(portals));
}
export function loadSavedPortals(): Portal[] | null {
let portals: string | null = null;
if (typeof globalThis.localStorage !== "undefined") {
portals = globalThis.localStorage.getItem("portals");
}
let portals = window.localStorage.getItem("portals");
if (!portals) {
return null;