1/** 2 * @file 3 * Otsuka Privacy Compliant Media utilities. 4 * 5 * Added here rather than global.js due to async function causing issues 6 * with babel and old Node version (v14). 7 * 8 * @see https://github.com/babel/babel/issues/8829 9 */ 10(function (Drupal, OtsukaPCM) { 11 12 'use strict'; 13 14 Drupal.behaviors.cmpInitScript = { 15 attach: (context) => { 16 once("cmpInitScript", "script", context).forEach(async (script) => { 17 try { 18 await OtsukaPCM.initScript(script); 19 } catch (e) { 20 console.error(`global.js initScript: caught error: ${e}`); 21 } 22 }); 23 }, 24 }; 25 26})(Drupal, OtsukaPCM);
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.