From 862198772d1b50822d888bae4d13d3ee8aa69740 Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 6 Apr 2013 18:18:33 +0900 Subject: ミョクス --- statusbar_panel.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'statusbar_panel.js') diff --git a/statusbar_panel.js b/statusbar_panel.js index 156fd7f..fe2a52b 100644 --- a/statusbar_panel.js +++ b/statusbar_panel.js @@ -52,15 +52,14 @@ function getImages(panel) { } function makeIcon(panel) { - var icon = ; + var icon = xml``; var image = getImages(panel)[0]; if (image) { let style = window.getComputedStyle(image, null); let src = image.src || style.listStyleImage.replace(/^url\("(.+)"\)$/, '$1'); if (src != '') { - icon.@style = 'list-style-image: url("' + src + '");' + - '-moz-image-region: ' + style.MozImageRegion; + icon.setAttribute('style','list-style-image: url("' + src + '");' + '-moz-image-region: ' + style.MozImageRegion); } } return icon; @@ -140,7 +139,7 @@ commands.addUserCommand(['statusbarpanel'],'click statusbar panel', context.keys = { text: 'text', description: 'desc', icon: 'icon' }; context.compare = CompletionContext.Sort.unsorted; context.process = [function (item, text) { - return `{item.icon ? item.icon : ``}{text}` + return xml`{item.icon ? item.icon : ``}{text}` }]; var list = generateStatusbarpaneIDlList(arg); -- cgit v1.2.3