diff --git a/src/views/ContactAmountsView.vue b/src/views/ContactAmountsView.vue
index 1d3654ab7..bd66fd618 100644
--- a/src/views/ContactAmountsView.vue
+++ b/src/views/ContactAmountsView.vue
@@ -57,7 +57,7 @@
- {{ record.amount }} {{ record.unit }}
+ {{ displayAmount(record.unit, record.amount) }}
@@ -81,7 +81,7 @@
- {{ record.amount }} {{ record.unit }}
+ {{ displayAmount(record.unit, record.amount) }}
@@ -119,6 +119,7 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import { accessToken, SimpleSigner } from "@/libs/crypto";
import {
AgreeVerifiableCredential,
+ displayAmount,
GiveSummaryRecord,
GiveVerifiableCredential,
SCHEMA_ORG_CONTEXT,
@@ -134,6 +135,8 @@ export default class ContactAmountssView extends Vue {
giveRecords: Array = [];
numAccounts = 0;
+ displayAmount = displayAmount;
+
async beforeCreate() {
await accountsDB.open();
this.numAccounts = await accountsDB.accounts.count();
diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue
index 5256ca505..e8b235b38 100644
--- a/src/views/DiscoverView.vue
+++ b/src/views/DiscoverView.vue
@@ -6,7 +6,7 @@
- Discover
+ Discover Projects
diff --git a/sw_scripts/additional-scripts.js b/sw_scripts/additional-scripts.js
index ade41a99e..ebdff59c4 100644
--- a/sw_scripts/additional-scripts.js
+++ b/sw_scripts/additional-scripts.js
@@ -137,12 +137,10 @@ self.addEventListener("fetch", (event) => {
// Bypass any regular requests not related to Web Share Target
// and also requests that are not exactly to the timesafari.app
- // (because Chrome will send subdomain requests like image-api.timesafari.app through this service worker).
+ // (note that Chrome will send subdomain requests like image-api.timesafari.app through this service worker).
if (
event.request.method !== "POST" ||
- (event.request.url.hostname !== "timesafari.app" &&
- event.request.url.hostname !== "test.timesafari.app" &&
- event.request.url.hostname !== "localhost")
+ !event.request.url.endsWith("/share-target")
) {
event.respondWith(fetch(event.request));
return;
diff --git a/vite.config.mjs b/vite.config.mjs
index 3964ac325..7a811dfdb 100644
--- a/vite.config.mjs
+++ b/vite.config.mjs
@@ -33,7 +33,7 @@ export default defineConfig({
files: [
{
name: 'photo',
- accept: ['image/jpg', 'image/jpeg', 'image/png'],
+ accept: ['image/*'],
},
],
},
| |