mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 04:49:33 -07:00
Fixed the PresetTheme stuff !wip
This commit is contained in:
parent
bb1795345b
commit
e3f5f032c0
1 changed files with 53 additions and 57 deletions
|
@ -94,16 +94,12 @@ O:::::::OOO:::::::Om::::m m::::m m::::mb:::::bbbbbb::::::bi::::::i
|
|||
if (!customization.PresetThemeContent.Contains("/" + baseUrl))
|
||||
{
|
||||
var index = customization.PresetThemeContent.IndexOf("/api/");
|
||||
customization.PresetThemeContent = customization.PresetThemeContent.Insert(index, "/" + baseUrl);
|
||||
} else
|
||||
if (index > 0)
|
||||
{
|
||||
var startIndex = customization.PresetThemeContent.IndexOf("href=");
|
||||
var index = customization.PresetThemeContent.IndexOf("/api/");
|
||||
customization.PresetThemeContent = customization.PresetThemeContent.Remove(startIndex+6, (index-(startIndex+6)));
|
||||
index = customization.PresetThemeContent.IndexOf("/api/");
|
||||
customization.PresetThemeContent = customization.PresetThemeContent.Insert(index, "/" + baseUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<style>
|
||||
@Html.Raw(customization.PresetThemeContent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue