@lvce-editor/main-process 6.19.5 → 6.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainProcessMain.js +2 -1
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -4376,7 +4376,8 @@ const getOrCreateConfig = () => {
|
|
|
4376
4376
|
|
|
4377
4377
|
const getRelativePath = url => {
|
|
4378
4378
|
const relative = url.slice(scheme.length + 4);
|
|
4379
|
-
|
|
4379
|
+
const queryIndex = relative.indexOf('?');
|
|
4380
|
+
return queryIndex === -1 ? relative : relative.slice(0, queryIndex);
|
|
4380
4381
|
};
|
|
4381
4382
|
|
|
4382
4383
|
const getElectronFileResponseConfig = async (url, request) => {
|