Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Abel/PersonalData.js
(view source)
Revision as of 14:46, 27 May 2019
83 bytes removed
,
5 years ago
m
no edit summary
Line 89:
Line 89:
var db = pddb.result;
var db = pddb.result;
var store = db.createObjectStore(pddbname, {keyPath: "id"});
var store = db.createObjectStore(pddbname, {keyPath: "id"});
−
var
index;
+
var index = store.createIndex("NameIndex", ["id"]);
−
// shouldn't the index be the wiki.personaldata.io username?
−
if ( iOS ) {
−
index = db.store.createIndex("NameIndex", ["id"]);
−
} else {
−
index = store.createIndex("NameIndex", ["id"]);
−
}
};
};
Line 114:
Line 108:
// Get the original record from the db...
// Get the original record from the db...
−
var getRecord = index.get(record.id);
+
var
getRecord;
+
if ( iOS ) {
+
getRecord = index.get(record.id);
+
} else {
+
getRecord = index.get(
[
record.id
]
);
+
}
getRecord.onsuccess = function() {
getRecord.onsuccess = function() {
Abel
530
edits
Navigation menu
Personal tools
English
Log in
Request account
Namespaces
User page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
User contributions
Logs
View user groups
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack