improved dynamic CSS handling

This commit is contained in:
Shaun Walker
2019-09-20 09:52:40 -04:00
parent c3ff9ff12b
commit ddf7cdbec7
4 changed files with 45 additions and 0 deletions

View File

@ -57,6 +57,21 @@ namespace Oqtane.Shared
}
}
public Task RemoveCSS(string filepattern)
{
try
{
jsRuntime.InvokeAsync<string>(
"interop.removeCSS",
filepattern);
return Task.CompletedTask;
}
catch
{
return Task.CompletedTask;
}
}
public ValueTask<string> GetElementByName(string name)
{
try