[desktop] doesn't serialize button's icon info
This commit is contained in:
parent
43180c90eb
commit
af1cb78840
|
@ -116,10 +116,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
var _serializeHeaderButton = function(action, config) {
|
var _serializeHeaderButton = function(action, config) {
|
||||||
var attr = config.btn.$el.find('.icon use').attr('xlink:href');
|
|
||||||
var svgstr = '<svg viewBox="0 0 20 20">' + $(attr).html().replace(/<path/g, '<path fill=\"#fff\"') + '</svg>';
|
|
||||||
return {
|
return {
|
||||||
icon: 'svg://' + btoa(svgstr),
|
|
||||||
action: action,
|
action: action,
|
||||||
width: config.btn.$el.width(),
|
width: config.btn.$el.width(),
|
||||||
height: config.btn.$el.height(),
|
height: config.btn.$el.height(),
|
||||||
|
|
Loading…
Reference in a new issue