MCPcopy Index your code
hub / github.com/json-editor/json-editor / _getFileBase

Method _getFileBase

src/schemaloader.js:322–328  ·  view source on GitHub ↗
(location)

Source from the content-addressed store, hash-verified

320 }
321
322 _getFileBase (location) {
323 if (!location) return '/'
324
325 const { ajaxBase } = this.options
326
327 return typeof ajaxBase === 'undefined' ? this._getFileBaseFromFileLocation(location) : ajaxBase
328 }
329
330 _getFileBaseFromFileLocation (fileLocationString) {
331 const pathItems = fileLocationString.split('/')

Callers 2

loadMethod · 0.95

Calls 1

Tested by

no test coverage detected