Changeset 434 for binary-improvements2/WebServer/src/WebMod.cs
- Timestamp:
- May 17, 2023, 11:05:59 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebMod.cs
r426 r434 20 20 IsWebMod = Directory.Exists (folder); 21 21 22 if (IsWebMod) { 23 string urlWebModBase = $"{modsBaseUrl}{_parentMod.FolderName}/"; 22 if (!IsWebMod) { 23 return; 24 } 24 25 25 ReactBundle = $"{folder}/{reactBundleName}"; 26 ReactBundle = File.Exists (ReactBundle) ? $"{urlWebModBase}{reactBundleName}" : null; 26 string urlWebModBase = $"{modsBaseUrl}{_parentMod.FolderName}/"; 27 27 28 CssPath = $"{folder}/{stylingFileName}";29 CssPath = File.Exists (CssPath) ? $"{urlWebModBase}{stylingFileName}" : null;28 ReactBundle = $"{folder}/{reactBundleName}"; 29 ReactBundle = File.Exists (ReactBundle) ? $"{urlWebModBase}{reactBundleName}" : null; 30 30 31 _parentWeb.RegisterPathHandler (urlWebModBase, new StaticHandler ( 32 folder, 33 _useStaticCache ? new SimpleCache () : new DirectAccess (), 34 false) 35 ); 36 } 31 CssPath = $"{folder}/{stylingFileName}"; 32 CssPath = File.Exists (CssPath) ? $"{urlWebModBase}{stylingFileName}" : null; 33 34 _parentWeb.RegisterPathHandler (urlWebModBase, new StaticHandler ( 35 folder, 36 _useStaticCache ? new SimpleCache () : new DirectAccess (), 37 false) 38 ); 37 39 } 38 40 }
Note:
See TracChangeset
for help on using the changeset viewer.