VulpesOS/gaia/apps/homescreen/js/pagesstore.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

25 lines
565 B
JavaScript
Executable file

/* global Datastore */
'use strict';
(function(exports) {
function PagesStore(name) {
this.name = name;
}
PagesStore.prototype = Object.create(Datastore.prototype);
PagesStore.prototype.DB_VERSION = 1;
PagesStore.prototype.set = function(data) {
data.id = data.url;
return Datastore.prototype.set.call(this, data);
};
PagesStore.prototype.getAll = function() {
var filter = (value) => value.data && value.data.pinned;
return Datastore.prototype.getAll.call(this, filter);
};
exports.PagesStore = PagesStore;
}(window));