Skip to content

Commit 6ac8987

Browse files
authored
Merge pull request #112 from typhoidgenomics/dev
Dev
2 parents 64d088f + 82251f7 commit 6ac8987

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

client/src/components/Elements/DownloadData/DownloadData.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ export const DownloadData = () => {
387387
graphImg.src = await domtoimage.toPng(document.getElementById(graphCards[index].id), { bgcolor: 'white' });
388388
await graphImgPromise;
389389
if (graphImg.width <= 741) {
390-
doc.addImage(graphImg, 'PNG', 16, 110, undefined,'FAST');
390+
doc.addImage(graphImg, 'PNG', 16, 110,undefined,undefined, undefined, 'FAST');
391391
} else {
392-
doc.addImage(graphImg, 'PNG', 16, 110, pageWidth - 80, 271, undefined,'FAST');
392+
doc.addImage(graphImg, 'PNG', 16, 110, pageWidth - 80, 271, undefined, 'FAST');
393393
}
394394

395395
doc.setFillColor(255, 255, 255);
@@ -468,7 +468,7 @@ export const DownloadData = () => {
468468
startIcon={<PictureAsPdf />}
469469
loadingPosition="start"
470470
>
471-
Download report from current view (PDF, 1MB)
471+
Download report from current view (PDF, 2MB)
472472
</LoadingButton>
473473
<Snackbar open={showAlert} autoHideDuration={5000} onClose={handleCloseAlert}>
474474
<Alert onClose={handleCloseAlert} severity="error" sx={{ width: '100%' }}>

client/src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Static routes to run the app. Only use one: local or heroku.
22
//export const API_ENDPOINT = 'http://localhost:8080/api/';
3-
export const API_ENDPOINT = 'https://typhinet.herokuapp.com/api/';
3+
export const API_ENDPOINT = 'https://typhinetdev.herokuapp.com/api/';

client/src/registerServiceWorker.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@
2121
export default function register() {
2222
if (!process.env.PUBLIC_URL && process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
2323
// The URL constructor is available in all browsers that support SW.
24-
2524
// const publicUrl = new URL(process.env.PUBLIC_URL, window.location);
2625
// if (publicUrl.origin !== window.location.origin) {
2726
// // Our service worker won't work if PUBLIC_URL is on a different origin
28-
// from what our page is served on. This might happen if a CDN is used to
29-
// serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374
30-
// return;
31-
}
32-
27+
// // from what our page is served on. This might happen if a CDN is used to
28+
// // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374
29+
// return;
30+
// }
3331
// window.addEventListener("load", () => {
3432
// const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
3533

0 commit comments

Comments
 (0)