Skip to content

Commit 9160b5c

Browse files
committed
Only CSS beautify if it's a CSS file
1 parent 00b02af commit 9160b5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/cssbeautify/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
0<g&&(c=2)):a+=b;else if(6===c)if(!q(b))a+=b,c=7;else{if("'"===d||'"'===d)c=7}else 7===c?"}"===b?(n(),c=0,0<g&&(c=2)):";"===b?(a=f(a),a+=";\n",c=4):(a+=b,"("===b&&"l"===a.charAt(a.length-2)&&"r"===a.charAt(a.length-3)&&"u"===a.charAt(a.length-4)&&(c=8)):8===c&&")"===b&&a.charAt("\\"!==a.length-1)?(a+=b,c=7):a+=b}return a=k.join("")+a}"undefined"!==typeof exports?module.exports=exports=p:"object"===typeof window&&(window.cssbeautify=p)})();
3636
3737
cM = top.ICEcoder.getcMInstance();
38-
if (cM) {
38+
if (cM && top.ICEcoder.openFiles[top.ICEcoder.selectedTab-1].indexOf('.css') > -1) {
3939
cM.setValue(cssbeautify(cM.getValue(), {
4040
indent: ' ',
4141
openbrace: 'end-of-line',

0 commit comments

Comments
 (0)