- add: createPushSubscription :

'Subscribed to FreePlanet.app!',
  'You can now receive Notification and Messages.'
This commit is contained in:
Paolo Arena
2019-02-05 18:17:36 +01:00
parent d8e0ff0bc3
commit cb941568e2
11 changed files with 242 additions and 157 deletions

View File

@@ -1,3 +1,5 @@
import objectId from "./objectId";
console.log('utility.js')
// var dbPromise = idb.open('mydb1', 1, function (db) {
@@ -79,3 +81,5 @@ function dataURItoBlob(dataURI) {
var blob = new Blob([ab], { type: mimeString });
return blob;
}
export default urlBase64ToUint8Array