Skip to content

Commit f085571

Browse files
committed
normalized casing of BaseUrl
1 parent b2d9429 commit f085571

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Blazor.PWA.MSBuild.Tasks/build/BlazorPWA.MSBuild.Manifest.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<WriteLinesToFile
8383
File="$(IndexFile)"
8484
Overwrite="true"
85-
Lines="$(IndexLines.Replace('&lt;/head&gt;',' &lt;link href=&quot;$(ManifestBaseURL)$(ManifestFileName)&quot; rel=&quot;manifest&quot;/&gt;%0D%0A&lt;/head&gt;'))"
85+
Lines="$(IndexLines.Replace('&lt;/head&gt;',' &lt;link href=&quot;$(ManifestBaseUrl)$(ManifestFileName)&quot; rel=&quot;manifest&quot;/&gt;%0D%0A&lt;/head&gt;'))"
8686
Condition="'$(IndexLines.Contains(rel=&quot;manifest&quot;))'=='false'"/>
8787
</Target>
8888
</Project>

Blazor.PWA.MSBuild.Tasks/build/BlazorPWA.MSBuild.ServiceWorker.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<!-- Setup the declarations for the Service Worker -->
5151
<ServiceWorkerConstants Condition="'$(ServiceWorkerConstants)' == '' AND '$(BlazorProjectType)' == 'CSB'">
52-
const baseURL = '$(ServiceWorkerBaseURL)'%3B;
52+
const baseURL = '$(ServiceWorkerBaseUrl)'%3B;
5353
const indexURL = '$(ServiceWorkerBaseUrl)$(ProjectIndexPage)'%3B;
5454
const networkFetchEvent = '$(ServiceWorkerNetworkFetchEvent)'%3B;
5555
const swInstallEvent = '$(ServiceWorkerInstallEvent)'%3B;
@@ -61,7 +61,7 @@
6161

6262
<!-- Setup the declarations for the Service Worker -->
6363
<ServiceWorkerConstants Condition="'$(ServiceWorkerConstants)' == '' AND '$(BlazorProjectType)' == 'SSB'">
64-
const baseURL = '$(ServiceWorkerBaseURL)'%3B;
64+
const baseURL = '$(ServiceWorkerBaseUrl)'%3B;
6565
const indexURL = '$(ServiceWorkerBaseUrl)$(ProjectHomePage)'%3B;
6666
const networkFetchEvent = '$(ServiceWorkerNetworkFetchEvent)'%3B;
6767
const swInstallEvent = '$(ServiceWorkerInstallEvent)'%3B;
@@ -105,7 +105,7 @@
105105
<WriteLinesToFile Condition="'$(BlazorProjectType)' == 'CSB'"
106106
File="$(WWWRoot)$(ServiceWorkerFileName)"
107107
Overwrite="false"
108-
Lines="const requiredFiles = [;@(DistFiles -> '&quot;/%(ServiceWorkerBaseURL)%(RecursiveDir)%(FileName)%(Extension)&quot;'->Replace('\','/'),',%0D%0A');]%3B;" />
108+
Lines="const requiredFiles = [;@(DistFiles -> '&quot;/%(ServiceWorkerBaseUrl)%(RecursiveDir)%(FileName)%(Extension)&quot;'->Replace('\','/'),',%0D%0A');]%3B;" />
109109
<WriteLinesToFile Condition="'$(BlazorProjectType)' == 'CSB'"
110110
File="$(WWWRoot)$(ServiceWorkerFileName)"
111111
Overwrite="false"

Blazor.PWA.MSBuild.Tasks/build/BlazorPWA.MSBuild.ServiceWorkerRegister.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<WriteLinesToFile
111111
File="$(IndexFile)"
112112
Overwrite="true"
113-
Lines="$(IndexLines.Replace('&lt;/head&gt;',' &lt;script src=&quot;$(ServiceWorkerBaseURL)$(ServiceWorkerRegisterFileName)&quot;&gt;&lt;/script&gt;%0D%0A&lt;/head&gt;'))"
113+
Lines="$(IndexLines.Replace('&lt;/head&gt;',' &lt;script src=&quot;$(ServiceWorkerBaseUrl)$(ServiceWorkerRegisterFileName)&quot;&gt;&lt;/script&gt;%0D%0A&lt;/head&gt;'))"
114114
Condition="'$(IndexLines.Contains($(ServiceWorkerRegisterFileName)))'=='false'"
115115
/>
116116

0 commit comments

Comments
 (0)