Skip to content

Commit

Permalink
Fix Safari sharing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MuTsunTsai committed Jun 12, 2023
1 parent 4111fd2 commit e5cde93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "box-pleating-studio",
"version": "0.5.7",
"version": "0.5.8",
"description": "Super-complex origami design made easy!",
"main": "./build/dist/bpstudio.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/dialog/share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
const SHORT_INTERVAL = 10;
this.sending = true;
try {
let response = await fetch("https://tinyurl.com/api-create.php?url=" + encodeURIComponent(this.url), {
cache: "reload",
});
// For unknown reason, using `{ cache: "reload" }`
// option here will lead to no-response error in Safari.
let response = await fetch("https://tinyurl.com/api-create.php?url=" + encodeURIComponent(this.url));
this.url = await response.text();
this.sending = false;
if(!this.$refs.bt) {
Expand Down
1 change: 1 addition & 0 deletions src/log/20220205.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ Patches:
- 0.5.5: Fix one minor startup error handling bug.
- 0.5.6: Fix one critical startup bug, welcome screen file opening bug, and one minor hotkey bug.
- 0.5.7: Improve startup error reporting.
- 0.5.8: Fix sharing error in Safari.
4 changes: 2 additions & 2 deletions src/public/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width, user-scalable=no">
<meta name="description" content="Super-complex origami design made easy!">
<meta name="google" content="notranslate">
<meta name="version" content="0.5.7">
<meta name="version" content="0.5.8">

<!-- Preload -->
<link rel="preload" as="font" type="font/woff2" crossorigin href="assets/bps/fonts/bps.woff2">
Expand All @@ -32,7 +32,7 @@
page_title: document.title,
page_path: "/",
app_name: document.title,
app_version: "1233"
app_version: "1234"
};
gtag('js', new Date());
gtag('config', 'G-GG1TEZGBCQ', app_config);
Expand Down

0 comments on commit e5cde93

Please sign in to comment.