File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 8181 new-formatters-js (if (empty? new-formatters) nil (into-array new-formatters))]
8282 (set-formatters-safe! new-formatters-js)))
8383
84+ (defn display-formatters-removal-warning! []
85+ (let [console (context/get-console )]
86+ (.warn console (str " Custom formatters are likely to be removed from future Chrome. "
87+ " Enabling them is no longer sticky since Chrome 84. "
88+ " Please follow the issue here: https://github.com/binaryage/cljs-devtools/issues/55" ))))
89+
8490; -- installation -----------------------------------------------------------------------------------------------------------
8591
8692(defn installed? []
8995(defn install! []
9096 (when-not *installed*
9197 (set! *installed* true )
98+ (if-not (prefs/pref :dont-display-formatters-removal-warning )
99+ (display-formatters-removal-warning! ))
92100 (install-our-formatter! (build-cljs-formatter ))
93101 true ))
94102
You can’t perform that action at this time.
0 commit comments