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 81
81
new-formatters-js (if (empty? new-formatters) nil (into-array new-formatters))]
82
82
(set-formatters-safe! new-formatters-js)))
83
83
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
+
84
90
; -- installation -----------------------------------------------------------------------------------------------------------
85
91
86
92
(defn installed? []
89
95
(defn install! []
90
96
(when-not *installed*
91
97
(set! *installed* true )
98
+ (if-not (prefs/pref :dont-display-formatters-removal-warning )
99
+ (display-formatters-removal-warning! ))
92
100
(install-our-formatter! (build-cljs-formatter ))
93
101
true ))
94
102
You can’t perform that action at this time.
0 commit comments