kopia lustrzana https://gitlab.com/rysiekpl/libresilient
export PLUGIN_NAME and import it in fetchContentFromAlternativeEndpoints
rodzic
29ac743432
commit
4d3e088781
|
@ -12,7 +12,7 @@ import { fetchContentFromAlternativeEndpoints } from "./lib/fetchContentFromAlte
|
|||
* the polyfill is implemented in LibResilient's service-worker.js
|
||||
*/
|
||||
|
||||
const PLUGIN_NAME = 'alt-fetch';
|
||||
export const PLUGIN_NAME = 'alt-fetch';
|
||||
|
||||
const LRPC = self.libResilientPluginConstructors;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import { PLUGIN_NAME } from "../index";
|
||||
|
||||
export function fetchContentFromAlternativeEndpoints (url, init = {}, config) {
|
||||
// remove the https://original.domain/ bit to get the relative path
|
||||
// TODO: this assumes that URLs we handle are always relative to the root
|
||||
|
|
Ładowanie…
Reference in New Issue