Skip to content

Commit

Permalink
avoid CSP unsafe-inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Sep 26, 2017
1 parent d464578 commit e727896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ class VConsole {
touchHasMoved = false;
targetElem = null;
}, false);

}
/**
* bind DOM events
Expand Down Expand Up @@ -465,7 +464,7 @@ class VConsole {
if (!toolList) {
return;
}
let $defaultBtn = $.one('.vc-tool-last');
let $defaultBtn = $.one('.vc-tool-last', that.$dom);
for (let i=0; i<toolList.length; i++) {
let item = toolList[i];
let $item = $.render(tplToolItem, {
Expand Down
2 changes: 1 addition & 1 deletion src/core/topbar_item.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="javascript:;" class="vc-toptab vc-topbar-{{pluginID}}{{if (className)}} {{className}}{{/if}}">{{name}}</a>
<a class="vc-toptab vc-topbar-{{pluginID}}{{if (className)}} {{className}}{{/if}}">{{name}}</a>

0 comments on commit e727896

Please sign in to comment.