frontend: ensure API_ORIGIN is always set
This commit is contained in:
@@ -16,7 +16,7 @@ import { TextViewer, ImageViewer } from 'pankow-viewers';
|
||||
import { createDirectoryModel } from '../models/DirectoryModel.js';
|
||||
import { sanitize } from 'pankow/utils';
|
||||
|
||||
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? 'https://' + import.meta.env.VITE_API_ORIGIN : '';
|
||||
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? 'https://' + import.meta.env.VITE_API_ORIGIN : window.origin;
|
||||
|
||||
export default {
|
||||
name: 'Viewer',
|
||||
|
||||
Reference in New Issue
Block a user