CSS separation, multi-tenancy fixes
This commit is contained in:
@ -41,12 +41,12 @@ namespace Oqtane.Shared
|
||||
}
|
||||
}
|
||||
|
||||
public Task AddCSS(string id, string url)
|
||||
public Task IncludeCSS(string id, string url)
|
||||
{
|
||||
try
|
||||
{
|
||||
jsRuntime.InvokeAsync<string>(
|
||||
"interop.addCSS",
|
||||
"interop.includeCSS",
|
||||
id, url);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
@ -56,21 +56,6 @@ namespace Oqtane.Shared
|
||||
}
|
||||
}
|
||||
|
||||
public Task RemoveCSS(string pattern)
|
||||
{
|
||||
try
|
||||
{
|
||||
jsRuntime.InvokeAsync<string>(
|
||||
"interop.removeCSS",
|
||||
pattern);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
public ValueTask<string> GetElementByName(string name)
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user