MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / retrieve

Method retrieve

bindings/javascript/src/options.rs:124–135  ·  view source on GitHub ↗
(&self, location: &str)

Source from the content-addressed store, hash-verified

122
123 impl css_inline::StylesheetResolver for UnsupportedResolver {
124 fn retrieve(&self, location: &str) -> css_inline::Result<String> {
125 let message = if location.starts_with("https")
126 || location.starts_with("http")
127 {
128 format!(
129 "Loading remote stylesheets is not supported on WASM: {location}"
130 )
131 } else {
132 format!("Loading local files is not supported on WASM: {location}")
133 };
134 Err(self.unsupported(&message))
135 }
136 }
137 Arc::new(UnsupportedResolver)
138 }

Callers

nothing calls this directly

Calls 1

unsupportedMethod · 0.80

Tested by

no test coverage detected