Move all static files to public/ folder and fix paths

This commit is contained in:
2016-12-28 00:50:58 -08:00
parent 83161dc7e0
commit 0ba89c8d9c
18 changed files with 18 additions and 18 deletions

View File

@@ -50,13 +50,13 @@ export default class NotifPage extends React.Component {
let options = {
body: 'Notification from Notica',
icon: 'assets/img/icon.png',
iconUrl: 'assets/img/icon.png',
icon: 'img/icon.png',
iconUrl: 'img/icon.png',
vibrate: [200, 100, 200]
};
try {
navigator.serviceWorker.register('/assets/js/sw.js').then((reg) => {
navigator.serviceWorker.register('/js/sw.js').then((reg) => {
reg.showNotification(title, options);
});
} catch (e) { // If we are on a browser without serviceWorker

View File

@@ -32,7 +32,7 @@ export default class Site extends React.Component {
<div className="hero">
<div className="title">
<Link to={'/home/' + id}>
<img src="/assets/img/logo.svg" />
<img src="/img/logo.svg" />
<span className="name">Notica</span>
</Link>
</div>