mirror of https://github.com/calzoneman/sync.git
Solve #130
This commit is contained in:
parent
777d767466
commit
8da604fd8a
|
@ -228,7 +228,6 @@ Callbacks = {
|
||||||
},
|
},
|
||||||
|
|
||||||
channelCSSJS: function(data) {
|
channelCSSJS: function(data) {
|
||||||
console.log("recv cssjs", data);
|
|
||||||
$("#chancss").remove();
|
$("#chancss").remove();
|
||||||
$("#chanjs").remove();
|
$("#chanjs").remove();
|
||||||
|
|
||||||
|
@ -236,6 +235,7 @@ Callbacks = {
|
||||||
$("#jstext").val(data.js);
|
$("#jstext").val(data.js);
|
||||||
|
|
||||||
if(data.css) {
|
if(data.css) {
|
||||||
|
$("#usertheme").remove();
|
||||||
$("<style/>").attr("type", "text/css")
|
$("<style/>").attr("type", "text/css")
|
||||||
.attr("id", "chancss")
|
.attr("id", "chancss")
|
||||||
.text(data.css)
|
.text(data.css)
|
||||||
|
|
Loading…
Reference in New Issue