Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix issue in Safari (#1758)

Stanimir832fad10083d
diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsx
index 3ad4b2991..c1599983a 100644
--- a/app/containers/MainPage.tsx
+++ b/app/containers/MainPage.tsx
@@ -944,8 +944,7 @@ const areEqual = (prevProp, nextProp) =>
prevProp.isThirdPartyLibsDialogOpened &&
nextProp.isUploadProgressDialogOpened ===
prevProp.isUploadProgressDialogOpened &&
- nextProp.isImportKanBanDialogOpened ===
- prevProp.isImportKanBanDialogOpened &&
+ nextProp.isImportKanBanDialogOpened === prevProp.isImportKanBanDialogOpened &&
JSON.stringify(nextProp.selectedEntries) ===
JSON.stringify(prevProp.selectedEntries) &&
JSON.stringify(nextProp.openedFiles) === JSON.stringify(prevProp.openedFiles);
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 813efe4b1..ef47f5abf 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -113,8 +113,7 @@ export const types = {
TOGGLE_CREATE_FILE_DIALOG: 'APP/TOGGLE_CREATE_FILE_DIALOG',
TOGGLE_DELETE_MULTIPLE_ENTRIES_DIALOG:
'APP/TOGGLE_DELETE_MULTIPLE_ENTRIES_DIALOG',
- TOGGLE_IMPORT_KANBAN_DIALOG:
- 'APP/TOGGLE_IMPORT_KANBAN_DIALOG',
+ TOGGLE_IMPORT_KANBAN_DIALOG: 'APP/TOGGLE_IMPORT_KANBAN_DIALOG',
TOGGLE_UPLOAD_DIALOG: 'APP/TOGGLE_UPLOAD_DIALOG',
CLEAR_UPLOAD_DIALOG: 'APP/CLEAR_UPLOAD_DIALOG',
TOGGLE_PROGRESS_DIALOG: 'APP/TOGGLE_PROGRESS_DIALOG',
diff --git a/configs/webpack.config.web.dev.babel.js b/configs/webpack.config.web.dev.babel.js
index 2c7a64faa..94ce1f64d 100644
--- a/configs/webpack.config.web.dev.babel.js
+++ b/configs/webpack.config.web.dev.babel.js
@@ -124,6 +124,13 @@ export default merge(baseConfig, {
},
// WOFF Font
{
+ test: /\.(woff|woff2|eot|ttf|otf)$/i,
+ type: 'asset/resource',
+ generator: {
+ filename: 'fonts/[hash][ext][query]'
+ }
+ },
+ /*{
test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
@@ -163,7 +170,7 @@ export default merge(baseConfig, {
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
use: 'file-loader',
type: 'javascript/auto'
- },
+ },*/
// SVG Font
{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
diff --git a/configs/webpack.config.web.prod.babel.js b/configs/webpack.config.web.prod.babel.js
index 29345df0a..bf088910d 100644
--- a/configs/webpack.config.web.prod.babel.js
+++ b/configs/webpack.config.web.prod.babel.js
@@ -124,6 +124,13 @@ export default merge(baseConfig, {
},
// WOFF Font
{
+ test: /\.(woff|woff2|eot|ttf|otf)$/i,
+ type: 'asset/resource',
+ generator: {
+ filename: 'fonts/[hash][ext][query]'
+ }
+ },
+ /*{
test: /\.woff(\?v=\d+\.\d+\.\d+)?$/,
use: {
loader: 'url-loader',
@@ -163,7 +170,7 @@ export default merge(baseConfig, {
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
use: 'file-loader',
type: 'javascript/auto'
- },
+ },*/
// SVG Font
{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,