Skip to content

Commit 69a5264

Browse files
author
John Marlo Factorin
committed
Merge pull request #2 from jm-factorin/remove-permissions-code-fix
Remove unused permission
2 parents d8c6321 + 6b0a1c1 commit 69a5264

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

js/app.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
(function () {
22
'use strict';
33

4-
var doRenderChatCode = function (timeline) {
5-
var $timeline = $('<div></div>').html(timeline);
4+
function highlight(timeline) {
5+
var $timeline = $('<div>').html(timeline);
66
var $messages = $timeline.find('.chatTimeLineMessage');
7-
87
if (!$messages.length) {
98
return;
109
}
@@ -14,11 +13,11 @@
1413
});
1514

1615
return $timeline.html();
17-
};
16+
}
1817

1918
var renderTimeLine = TimeLineView.prototype.renderTimeLine;
2019
TimeLineView.prototype.renderTimeLine = function (a, b) {
21-
b = doRenderChatCode(b);
20+
b = highlight(b);
2221
renderTimeLine.apply(TimeLineView, [a, b]);
2322
};
2423
})();

manifest.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
{
22
"manifest_version": 2,
33
"name": "ChatWork Code Highlight!",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"description": "ChatWork Code Highlight!",
66
"icons": {
77
"128": "icons/128.png",
88
"48": "icons/48.png",
99
"16": "icons/16.png"
1010
},
11-
"permissions": [
12-
"https://kcw.kddi.ne.jp/*",
13-
"https://www.chatwork.com/*",
14-
"tabs"
15-
],
1611
"short_name": "CW Code Highlight",
1712
"content_scripts": [
1813
{

0 commit comments

Comments
 (0)