Skip to content

Commit

Permalink
Merge pull request #104 from WindSekirun/fix-page-load-failed-on-safari
Browse files Browse the repository at this point in the history
Fix #103 Can't display webpage on safari
  • Loading branch information
WindSekirun (wind.seo) authored Mar 4, 2021
2 parents ff23d97 + fd5cef9 commit 846c0a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/calculator/UnitCalculator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function formatComma(str: string) {
return str.replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",");
return new Number(str).toLocaleString("en");
}

export function strToNum(str: string) {
Expand Down
1 change: 1 addition & 0 deletions src/components/common/LeafletMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import { MarkerData } from "@/model/vo/MarkerData";
import L from "leaflet";
import "leaflet.geodesic";
import { TrailData } from "@/model/plan/TrailData";
import "leaflet/dist/images/marker-shadow.png";
@Component({})
export default class LeafletMap extends Vue {
Expand Down

0 comments on commit 846c0a1

Please sign in to comment.