Don't do anything if there are more than 500 URLs

This commit is contained in:
Nate Weaver
2022-10-07 18:48:58 -05:00
parent 2fbc2fb628
commit fd75387d9c

View File

@@ -341,6 +341,10 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
}
func openArticleURLs(_ urlStrings: [String]) {
if urlStrings.count > 500 {
return
}
func doOpenURLs() {
for urlString in urlStrings {
Browser.open(urlString, inBackground: false)