1(function (Drupal) { 2 'use strict'; 3 4 Drupal.kalibrRecaptcha = Drupal.kalibrRecaptcha || { 5 requestToken: function (settings, action) { 6 let cfg = settings.kalibrRecaptcha || {}; 7 if (!cfg.siteKey || typeof grecaptcha === 'undefined') { 8 return Promise.resolve(null); 9 } 10 11 return new Promise(function (resolve) { 12 grecaptcha.ready(function () { 13 grecaptcha.execute(cfg.siteKey, {action: action || 'submit'}) 14 .then(resolve) 15 .catch(function () { resolve(null); }); 16 }); 17 }); 18 } 19 }; 20}(Drupal));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.