Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Move sidebar/index.js built file to sidebar/dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eoger committed Mar 10, 2018
1 parent 59464e6 commit fb1ab01
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src/sidebar/index.js
src/sidebar/dist
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.DS_Store
src/sidebar/index.js
src/sidebar/dist
web-ext-artifacts
node_modules
2 changes: 1 addition & 1 deletion src/sidebar/tabcenter.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div id="moretabs" draggable="true"></div>
<div id="spacer" draggable="true"></div>
</div>
<script src="index.js"></script>
<script src="dist/index.js"></script>
</body>
<template id="tab-template">
<div class="tab" draggable="true">
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/tabcenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TabCenter.prototype = {
window.addEventListener("contextmenu", (e) => {
const target = e.target;
// Let the searchbox input have a context menu.
if (!(target && target.tagName == "INPUT" && target.type == "text")) {
if (!(target && target.tagName === "INPUT" && target.type === "text")) {
e.preventDefault();
}
}, false);
Expand Down
4 changes: 2 additions & 2 deletions src/sidebar/topmenu/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const LONG_PRESS_DELAY = 500;

const NewTabPopup = require('./newtabpopup');
const NewTabPopup = require("./newtabpopup");

function TopMenu({openTab, search}) {
this._newTabButtonView = document.getElementById("newtab");
Expand Down Expand Up @@ -87,6 +87,6 @@ TopMenu.prototype = {
this._newTabPopup = null;
this._newTabButtonView.classList.remove("menuopened");
}
}
};

module.exports = TopMenu;
2 changes: 1 addition & 1 deletion src/sidebar/topmenu/newtabpopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ NewTabPopup.prototype = {
}
this._onHide();
}
}
};

module.exports = NewTabPopup;
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module.exports = {
entry: "./src/sidebar/tabcenter.js",
output: {
filename: "index.js",
path: `${__dirname}/src/sidebar`
path: `${__dirname}/src/sidebar/dist`
}
};

0 comments on commit fb1ab01

Please sign in to comment.