customCSS를 조금 더 안전하게 적용

This commit is contained in:
2018-09-06 23:38:47 +09:00
parent e7c6e17590
commit 10af31f042
+3 -1
View File
@@ -153,6 +153,8 @@ jQuery(function($){
var customCSS = localStorage.getItem('sam_customCSS');
if(customCSS){
$('<style type="text/css">\n'+customCSS+'\n</style>').appendTo($('head'));
var $style = $('<style type="text/css"></style>');
$style.text(customCSS);
$style.appendTo($('head'));
}
});