Skip to content

Commit

Permalink
update chrome app to use our new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jun 28, 2016
1 parent 8f1bd40 commit 3697c0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions chrome-app/board-setter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* global chrome */
chrome.storage.sync.get({
board: 'hello'
}, function(items) {
console.log('/#/' + items.board, items.board);
location.hash = '/' + items.board;
board: null
// eslint-disable-next-line prefer-arrow-callback
}, function setHash(items) {
if (items.board) {
location.hash = `/${items.board}`;
}
});
4 changes: 2 additions & 2 deletions chrome-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<html>
<head>
<title>React Transform Boilerplate</title>
<link rel="stylesheet" type="text/css" href="https://rikukissa.github.io/thoughts-app/style.css">
<link rel="stylesheet" type="text/css" href="https://ideahigh.com/style.css">
<script src="board-setter.js"></script>
<script src="https://use.typekit.net/dbp3wfc.js"></script>
<script src="font-loader.js"></script>
</head>
<body>
<div id="root"></div>
<script src="https://rikukissa.github.io/thoughts-app/bundle.js"></script>
<script src="https://ideahigh.com/bundle.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion chrome-app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"webRequestBlocking",
"storage"
],
"content_security_policy": "script-src 'self' 'unsafe-eval' https://use.typekit.net https://d37gvrvc0wt4s1.cloudfront.net/ https://rikukissa.github.io/; object-src 'self'",
"content_security_policy": "script-src 'self' 'unsafe-eval' https://use.typekit.net https://d37gvrvc0wt4s1.cloudfront.net/ https://ideahigh.com/; object-src 'self'",
"chrome_url_overrides" : {
"newtab": "index.html"
},
Expand Down

0 comments on commit 3697c0f

Please sign in to comment.