Changeset 434 for binary-improvements2/WebServer/src/WebMod.cs
- Timestamp:
- May 17, 2023, 11:05:59 PM (2 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  binary-improvements2/WebServer/src/WebMod.cs (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      binary-improvements2/WebServer/src/WebMod.csr426 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.
  ![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
