feat(web): Update to latest version of SvelteKit (#705)

This commit is contained in:
Alex 2022-09-16 23:13:22 -05:00 committed by GitHub
parent 75c2067836
commit 0d13b25f56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 5522 additions and 2273 deletions

View file

@ -25,7 +25,7 @@
notificationController,
NotificationType
} from '../shared-components/notification/notification';
import { browser } from '$app/env';
import { browser } from '$app/environment';
import { albumAssetSelectionStore } from '$lib/stores/album-asset-selection.store';
export let album: AlbumResponseDto;
@ -69,9 +69,9 @@
$: isMultiSelectionMode = multiSelectAsset.size > 0;
afterNavigate(({ from }) => {
backUrl = from?.pathname ?? '/albums';
backUrl = from?.url.pathname ?? '/albums';
if (from?.pathname === '/sharing') {
if (from?.url.pathname === '/sharing') {
isCreatingSharedAlbum = true;
}
});