MCPcopy Create free account
hub / github.com/microsoft/SandDance / sanitizeURL

Function sanitizeURL

docs/app/js/sanddance-app.js:122006–122018  ·  view source on GitHub ↗
(uri)

Source from the content-addressed store, hash-verified

122004 return this._pending;
122005 },
122006 sanitizeURL (uri) {
122007 const loader = this;
122008 increment(loader);
122009 return loader._loader.sanitize(uri, {
122010 context: "href"
122011 }).then((opt)=>{
122012 decrement(loader);
122013 return opt;
122014 }).catch(()=>{
122015 decrement(loader);
122016 return null;
122017 });
122018 },
122019 loadImage (uri) {
122020 const loader = this, Image = (0, _vegaCanvas.image)();
122021 increment(loader);

Callers

nothing calls this directly

Calls 2

incrementFunction · 0.70
decrementFunction · 0.70

Tested by

no test coverage detected