UNPKG

nativescript-contacts-lite

Version:

NativeScript plugin providing pretty fast read-only access to the iOS and Android contact directory

13 lines (11 loc) 381 B
require('globals'); // necessary to bootstrap tns modules on the new thread let contacts = require("./contacts"); self.onmessage = (event) => { let result = contacts.getContactsFromBackend( event.data.fields, (event.data.searchTerm==='') ? undefined : event.data.searchTerm, event.data.debug, true // we are running in a web worker ); postMessage(result); }