[desktop] doesn't serialize button's icon info

This commit is contained in:
Maxim Kadushkin 2019-10-30 16:29:27 +03:00
parent 43180c90eb
commit af1cb78840

View file

@ -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(),