Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #49 from PolymerElements/save-saveValue
Browse files Browse the repository at this point in the history
save -> saveValue
  • Loading branch information
e111077 authored Jun 8, 2017
2 parents 3ced61f + c0d130c commit 1ca4431
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app-pouchdb-document.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
},

/** @override */
save: function() {
saveValue: function() {
if (!this.db) {
return Promise.reject('No PouchDB instance available!');
}
Expand Down
8 changes: 2 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
"paper-fab": "polymerelements/paper-fab#1 - 2",
"iron-icons": "polymerelements/iron-icons#1 - 2",
"paper-button": "polymerelements/paper-button#1 - 2",
"platinum-sw": "polymerelements/platinum-sw#1 - 2",
"promise-polyfill": "polymerlabs/promise-polyfill#1 - 2",
"test-fixture": "PolymerElements/test-fixture#^3.0.0-rc.1",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0",
"web-component-tester": "^6.0.0"
},
Expand All @@ -45,7 +43,7 @@
"pouchdb": "^6.1.1",
"polymer": "Polymer/polymer#^1.9",
"pouchdb-find": "^0.10.0",
"app-storage": "polymerelements/app-storage#^0.10.0"
"app-storage": "polymerelements/app-storage#^1.0.0"
},
"devDependencies": {
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
Expand All @@ -57,10 +55,8 @@
"paper-fab": "polymerelements/paper-fab#^1.0.0",
"iron-icons": "polymerelements/iron-icons#^1.0.0",
"paper-button": "polymerelements/paper-button#^1.0.0",
"platinum-sw": "polymerelements/platinum-sw#^1.0.0",
"promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0",
"note-app-elements": "polymerlabs/note-app-elements",
"test-fixture": "polymerelements/test-fixture#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "^4.0.0"
},
Expand All @@ -72,4 +68,4 @@
"resolutions": {
"webcomponentsjs": "^1.0.0"
}
}
}
25 changes: 14 additions & 11 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,22 @@
padding: 0;
}
</style>
<script>
// Configure service worker cahcing for html assets
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('../sw-import.js').then(function (registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}).catch(function (err) {
// registration failed :(
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
</head>
<body unresolved>
<!-- Configure Service Worker caching: -->
<platinum-sw-register
auto-register
skip-waiting
clients-claim
reload-on-install
href="../sw-import.js">
<platinum-sw-cache
default-cache-strategy="networkFirst">
</platinum-sw-cache>
</platinum-sw-register>

<!-- Synchronize remote and local DB: -->
<!--
Expand Down
2 changes: 1 addition & 1 deletion demo/note-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<na-toolbar></na-toolbar>

<app-pouchdb-confict-resolution
<app-pouchdb-conflict-resolution
strategy="firstWriteWins">
</app-pouchdb-conflict-resolution>

Expand Down

0 comments on commit 1ca4431

Please sign in to comment.