Move all static files to public/ folder and fix paths
This commit is contained in:
@@ -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
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user