farhan 4 months ago
parent
commit
8a4fb69f3d
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      resources/views/modals/calendar-modal.blade.php

+ 9
- 9
resources/views/modals/calendar-modal.blade.php View File

279
 
279
 
280
         if (os === 'iOS') {
280
         if (os === 'iOS') {
281
             const icsContent = `BEGIN:VCALENDAR
281
             const icsContent = `BEGIN:VCALENDAR
282
-                                VERSION:2.0
283
-                                BEGIN:VEVENT
284
-                                SUMMARY:${title}
285
-                                DTSTART:${startDate}
286
-                                DTEND:${endDate}
287
-                                DESCRIPTION:${details}
288
-                                LOCATION:${location}
289
-                                END:VEVENT
290
-                                END:VCALENDAR`;
282
+VERSION:2.0
283
+BEGIN:VEVENT
284
+SUMMARY:${title}
285
+DTSTART:${startDate}
286
+DTEND:${endDate}
287
+DESCRIPTION:${details}
288
+LOCATION:${location}
289
+END:VEVENT
290
+END:VCALENDAR`;
291
 
291
 
292
             const dataURI = 'data:text/calendar;charset=utf-8,' + encodeURIComponent(icsContent);
292
             const dataURI = 'data:text/calendar;charset=utf-8,' + encodeURIComponent(icsContent);
293
             const a = document.createElement('a');
293
             const a = document.createElement('a');

Loading…
Cancel
Save