mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 21:11:10 +00:00
Removes the option to disable theme scripts
This commit is contained in:
1 parent
531450b3db
commit
15945c2e56
17 files changed
+15
-201
No files matched your search
@@ -14,11 +14,6 @@ namespace Lumina.Application.Common.Infrastructure.Themes;
|
||||
/// </summary>
|
||||
public interface IThemeService
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether theme templates may contain script elements and theme assets may include script files.
|
||||
/// </summary>
|
||||
bool AllowThemeScripts { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum allowed size of a theme archive, in bytes.
|
||||
/// </summary>
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ public class GetThemeSettingsQueryHandler : IQueryHandler<GetThemeSettingsQuery,
|
||||
/// </returns>
|
||||
public Task<Result<ThemeSettingsResponse>> HandleAsync(GetThemeSettingsQuery query, CancellationToken cancellationToken)
|
||||
{
|
||||
ThemeSettingsResponse response = new(_themeService.MaxArchiveBytes, _themeService.AllowThemeScripts, _themeService.DefaultThemeId);
|
||||
ThemeSettingsResponse response = new(_themeService.MaxArchiveBytes, _themeService.DefaultThemeId);
|
||||
return Task.FromResult(Result.From(response));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user