Skip to content

Commit ba0158f

Browse files
authored
Import leaflet and mapillary CSS from npm packages, not unpkg.com (#2786)
1 parent 4bfb2cd commit ba0158f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

index.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicons/favicon-16x16.png">
2525
<link rel="shortcut icon" href="/favicon.ico">
2626

27-
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css"
28-
integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ=="
29-
crossorigin=""/>
30-
<link
31-
href="https://unpkg.com/mapillary-js@4.1.2/dist/mapillary.css"
32-
rel="stylesheet"
33-
/>
34-
3527
<title>MapRoulette</title>
3628
</head>
3729
<body>

src/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import {
2323
} from "./services/User/User";
2424
import "./theme.scss";
2525
import "./styles/index.css";
26+
import "leaflet/dist/leaflet.css";
27+
import "mapillary-js/dist/mapillary.css";
2628
import "leaflet.markercluster/dist/MarkerCluster.css";
2729
import "leaflet.markercluster/dist/MarkerCluster.Default.css";
2830

0 commit comments

Comments
 (0)