1/** 2 * Utility module for handling URL strings, typically for outputting 3 * hyperlinks that include the appropriate context path and security tokens. 4 * @module jira/util/urls 5 */ 6define('jira/util/urls', ['exports'], function (exports) { 7 'use strict'; 8 9 /** 10 * Returns the meta tag that contains the XSRF atlassian token 11 * or undefined if not on page 12 * @returns {string} a token you can provide to URLs that require XSRF authentication. 13 */ 14 exports.atl_token = function () { 15 var tokenEl = document.getElementById('atlassian-token'); 16 return tokenEl && tokenEl.getAttribute ? tokenEl.getAttribute('content') : undefined; 17 }; 18});
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.