From 844e1eea989c09c581a72d00c1d10de4a30f848c Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Thu, 21 Jan 2021 22:41:43 +0100 Subject: [PATCH] replaced downloadjs by just opening the data-url --- package.json | 1 - src/App.js | 5 +++-- yarn.lock | 5 ----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ee410a2..47fd6fd 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", - "downloadjs": "^1.4.7", "merge-images": "^2.0.0", "react": "^17.0.1", "react-dom": "^17.0.1", diff --git a/src/App.js b/src/App.js index aa90b9e..1f49d24 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,5 @@ import { useState, useEffect, useCallback } from 'react' import './App.css' -import download from 'downloadjs' import { useDropzone } from 'react-dropzone' import FrameChooser from './FrameChooser.js' import HeaderImage from './HeaderImage.svg' @@ -107,7 +106,9 @@ function App() {

Download your Photo:

Finished Frame - + + + ) } diff --git a/yarn.lock b/yarn.lock index a8b1a62..a7969e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4155,11 +4155,6 @@ dotenv@8.2.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw== -downloadjs@^1.4.7: - version "1.4.7" - resolved "https://registry.yarnpkg.com/downloadjs/-/downloadjs-1.4.7.tgz#f69f96f940e0d0553dac291139865a3cd0101e3c" - integrity sha1-9p+W+UDg0FU9rCkROYZaPNAQHjw= - duplexer@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6"