legacy/src/c/project-google-contact-import.js
Function oninit
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
oninit: function(vnode) {
const clientId = document.getElementById('google_oauth_client'),
modalToggle = h.toggleProp(false, true),
feedPageUrl = 'https://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=1000',
dataEmails = prop([]),
Function fetch
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetch = (token, pageUrl) => {
if (!modalToggle()) {
modalToggle.toggle();
loadingContacts(true);
m.redraw();