Compare commits
No commits in common. "v0.2.0-develop.29" and "v0.2.0-develop.28" have entirely different histories.
v0.2.0-dev
...
v0.2.0-dev
|
@ -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.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)
|
# [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)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/libweb",
|
"name": "@lumeweb/libweb",
|
||||||
"version": "0.2.0-develop.29",
|
"version": "0.2.0-develop.28",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lumeweb/libweb",
|
"name": "@lumeweb/libweb",
|
||||||
"version": "0.2.0-develop.29",
|
"version": "0.2.0-develop.28",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
||||||
"@lumeweb/libportal": "0.2.0-develop.17",
|
"@lumeweb/libportal": "0.2.0-develop.17",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/libweb",
|
"name": "@lumeweb/libweb",
|
||||||
"version": "0.2.0-develop.29",
|
"version": "0.2.0-develop.28",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -120,17 +120,11 @@ export function savePortals() {
|
||||||
url: item.portalUrl,
|
url: item.portalUrl,
|
||||||
} as Portal;
|
} as Portal;
|
||||||
});
|
});
|
||||||
if (typeof globalThis.localStorage !== "undefined") {
|
window.localStorage.setItem("portals", JSON.stringify(portals));
|
||||||
globalThis.localStorage.setItem("portals", JSON.stringify(portals));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadSavedPortals(): Portal[] | null {
|
export function loadSavedPortals(): Portal[] | null {
|
||||||
let portals: string | null = null;
|
let portals = window.localStorage.getItem("portals");
|
||||||
|
|
||||||
if (typeof globalThis.localStorage !== "undefined") {
|
|
||||||
portals = globalThis.localStorage.getItem("portals");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!portals) {
|
if (!portals) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue