Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add newtab override #208

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions assets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
],
"content_security_policy":
"script-src 'self'; object-src 'self';",
"chrome_url_overrides" : {
"newtab": "new-tab.html"
},
"background": {
"scripts": ["lib.js", "index.js"]
},
Expand Down
17 changes: 17 additions & 0 deletions assets/new-tab.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tab Stash</title>
<link rel="icon" href="../icons/logo.svg">
<!-- XXX This doesn't work yet:
<link rel="icon" media="inverted-colors: inverted" href="../icons/logo-light.svg">
-->
<link rel="stylesheet" type="text/css" href="tab-stash.css">
<script type="text/javascript" src="lib.js"></script>
<script type="text/javascript" src="stash-list.js"></script>
</head>

<body>
</body>
</html>
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"deleted-items": "./src/deleted-items/index.ts",
"restore": "./src/restore/index.ts",
"stash-list": "./src/stash-list/index.ts",
"new-tab": "./src/stash-list/index.ts",
"options": "./src/options/index.ts",
"whats-new": "./src/whats-new/index.ts",
},
Expand Down