Files
logseq/src/main/frontend/error.cljs
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00

17 lines
403 B
Clojure

(ns frontend.error
"Error related utility fns"
(:require [clojure.string :as string]))
(def ignored
#{"ResizeObserver loop limit exceeded"
"Uncaught TypeError:"})
(defn ignored?
[message]
(let [message (str message)]
(boolean
(some
;; TODO: some cases might need regex check
#(string/starts-with? (string/lower-case message) (string/lower-case %))
ignored))))