Skip to content

Commit e3a0508

Browse files
Merge pull request #63 from zhangkun902/main
[Wami] Remove title logic from server worker
2 parents 293e74d + 5cff6fa commit e3a0508

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

wami/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ async function processShareTargetData() {
481481
// Determines the flow configuration (title and steps) based on shared data
482482
function determineFlowConfiguration(shareData) {
483483
// Default flow title and steps
484-
let flowTitle = shareData.title || 'Shared Images Flow';
484+
let flowTitle = 'Shared Images Flow';
485485
let flowSteps = [
486486
{
487487
type: 'resize-width-if-larger',

wami/sw.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ self.addEventListener('fetch', event => {
109109

110110
// Extract data
111111
const data = {
112-
title: formData.get('title') || '',
113112
text: formData.get('text') || '',
114113
url: formData.get('url') || ''
115114
};
@@ -126,7 +125,6 @@ self.addEventListener('fetch', event => {
126125

127126
// Create an object with the share data including file names
128127
const shareData = {
129-
title: data.title,
130128
text: data.text,
131129
url: data.url,
132130
timestamp: Date.now(),

0 commit comments

Comments
 (0)