Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
許可URLを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaji255 committed Feb 25, 2024
1 parent 2bad2c6 commit c8ff3c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion KoeBook/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ static bool IsValid(string? value)
if (string.IsNullOrEmpty(value))
return true;
ReadOnlySpan<string> allowedOrigins = [
"https://www.aozora.gr.jp"
"https://www.aozora.gr.jp",
"https://syosetu.com",
];

try
Expand Down
6 changes: 3 additions & 3 deletions KoeBook/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
</StackPanel>-->

<StackPanel>
<TextBlock Text="Webページを読み上げる (青空文庫のみ対応)"/>
<TextBlock Text="Webページを読み上げる (青空文庫または小説家になろうに対応)"/>
<TextBox
Text="{x:Bind ViewModel.EbookUrl, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
BeforeTextChanging="{x:Bind ViewModel.BeforeTextChanging}"
Margin="{StaticResource XSmallTopMargin}"
PlaceholderText="https://www.aozora.gr.jp/cards/000035/files/1567_14913.html"/>
PlaceholderText="https://www.aozora.gr.jp"/>
<TextBlock
Visibility="{x:Bind ViewModel.ErrorTextVisibility, Mode=OneWay}"
Text="青空文庫のURLを入力してください"
Text="青空文庫または小説家になろうのURLを入力してください"
Style="{ThemeResource CaptionTextBlockStyle}"
Foreground="{ThemeResource SystemErrorTextColor}"/>
</StackPanel>
Expand Down

0 comments on commit c8ff3c5

Please sign in to comment.