From 3697c0f9ddfb79a0ad983c9c3af3e6db7746a80a Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Tue, 28 Jun 2016 22:02:31 +0300 Subject: [PATCH] update chrome app to use our new domain --- chrome-app/board-setter.js | 11 +++++++---- chrome-app/index.html | 4 ++-- chrome-app/manifest.json | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/chrome-app/board-setter.js b/chrome-app/board-setter.js index 826ba12..9e0cdd4 100644 --- a/chrome-app/board-setter.js +++ b/chrome-app/board-setter.js @@ -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}`; + } }); diff --git a/chrome-app/index.html b/chrome-app/index.html index bd969e6..455127f 100644 --- a/chrome-app/index.html +++ b/chrome-app/index.html @@ -2,13 +2,13 @@ React Transform Boilerplate - +
- + diff --git a/chrome-app/manifest.json b/chrome-app/manifest.json index d7d33bb..0f0739b 100644 --- a/chrome-app/manifest.json +++ b/chrome-app/manifest.json @@ -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" },