mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
updated external links
This commit is contained in:
@@ -3,10 +3,10 @@ import { executeEvent } from '../../utils/events';
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { navigationControllerAtom } from '../../atoms/global';
|
||||
import { Filesystem, Directory, Encoding } from '@capacitor/filesystem';
|
||||
import { Browser } from '@capacitor/browser';
|
||||
import { saveFile } from '../../qortalRequests/get';
|
||||
import { mimeToExtensionMap } from '../../utils/memeTypes';
|
||||
import { MyContext } from '../../App';
|
||||
import FileSaver from 'file-saver';
|
||||
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ const UIQortalRequests = [
|
||||
|
||||
|
||||
try {
|
||||
const { filename, mimeType, blob } = data;
|
||||
const { filename, mimeType, blob, fileHandleOptions } = data;
|
||||
|
||||
setInfoSnackCustom({
|
||||
type: "info",
|
||||
@@ -280,7 +280,10 @@ const UIQortalRequests = [
|
||||
|
||||
setOpenSnackGlobal(true);
|
||||
|
||||
await saveFileInChunks(blob, filename)
|
||||
|
||||
|
||||
FileSaver.saveAs(blob, filename)
|
||||
|
||||
setInfoSnackCustom({
|
||||
type: "success",
|
||||
message:
|
||||
|
@@ -36,8 +36,7 @@ export const MessageDisplay = ({ htmlContent , isReply}) => {
|
||||
const target = e.target.closest('a');
|
||||
if (target) {
|
||||
const href = target.getAttribute('href');
|
||||
await Browser.open({ url: href });
|
||||
|
||||
window.electronAPI.openExternal(href);
|
||||
} else {
|
||||
console.error('No <a> tag found or href is null.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user