diff options
Diffstat (limited to 'bog.js')
-rw-r--r-- | bog.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -94,6 +94,18 @@ async function get (key) { } } +async function getTitle (key) { + var log = await localforage.getItem('log') + if (log != null) { + for (var i = log.length - 1; i >= 0; --i) { + if (log[i].key === key) { + return log[i].text.substring(0, 15) + '…' + } + } + } +} + + // bog.getImage function getImage (id, keys, classList) { |