[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 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 {
|
||||
icon: 'svg://' + btoa(svgstr),
|
||||
action: action,
|
||||
width: config.btn.$el.width(),
|
||||
height: config.btn.$el.height(),
|
||||
|
|
Loading…
Reference in a new issue