From 317249131e1a548587023694c1ca8afdcbb5076c Mon Sep 17 00:00:00 2001 From: Nino Zumstein Date: Mon, 8 Nov 2021 17:49:27 +0100 Subject: [PATCH] updated onerror attr --- lib/server.js | 2 +- lib/server.js.map | 2 +- src/server.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/server.js b/lib/server.js index 5b789f1..62d7bb6 100644 --- a/lib/server.js +++ b/lib/server.js @@ -125,7 +125,7 @@ exports.createIncludeElement = function (fragmentID, props, esi) { var key = _a[0], value = _a[1]; return (attrs += " " + key + "=\"" + (value ? escapeAttr(value) : "") + "\""); }); - return ""; + return ""; }; /** * Removes the placeholder holding the data-reactroot attribute. diff --git a/lib/server.js.map b/lib/server.js.map index d1d33a2..b119b38 100644 --- a/lib/server.js.map +++ b/lib/server.js.map @@ -1 +1 @@ -{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA4B;AAE5B,gDAA0B;AAC1B,2CAAsD;AACtD,iCAA6C;AAEhC,QAAA,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,YAAY,CAAC;AAC/D,IAAM,MAAM,GACV,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,gBAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAEzE;;GAEG;AACH,SAAS,IAAI,CAAC,GAAQ;IACpB,IAAM,IAAI,GAAG,gBAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAED;;;;GAIG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E,8BAAC,SAAS,eAAK,UAAU,EAAI,CACzB,CACP,CAAC;oBAEI,qBAAqB,GAAG,IAAI,eAAe,EAAE,CAAC;oBACpD,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;oBAE7B,UAAU,GAA2B,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC;oBAElI,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;;;;;CACtB;AArDD,sCAqDC"} \ No newline at end of file diff --git a/src/server.tsx b/src/server.tsx index b6be192..3bf0b3a 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -70,7 +70,7 @@ export const createIncludeElement = ( ([key, value]) => (attrs += ` ${key}="${value ? escapeAttr(value) : ""}"`) ); - return ``; + return ``; }; type transformCallback = (error?: Error, data?: any) => void;