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

This commit is contained in:
Nate Weaver committed 2022-11-12 17:10:55 -06:00
1 parent 2fbc2fb628
commit fd75387d9c
1 file changed
+4
@@ -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)