[BUGFIX] Fix paths for embedded media assets (#1150)

This commit is contained in:
Amir Zarrinkafsh 2020-06-24 09:37:49 +10:00 committed by GitHub
parent 1a76241ad4
commit b770d3cb6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import { useBasePath } from "./BasePath";
__webpack_public_path__ = "/"
if (useBasePath() !== "") {
__webpack_public_path__ = useBasePath() + "/"
}

View File

@ -1,3 +1,4 @@
import './hooks/AssetPath';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';

View File

@ -1 +1,2 @@
/// <reference types="react-scripts" />
declare var __webpack_public_path__: string;