request failing packets
This commit is contained in:
@@ -89,4 +89,9 @@ export const urlToBytes = src => {
|
||||
export const bytesToUrl = bytes => {
|
||||
const blob = new Blob([new Uint8Array(bytes)]);
|
||||
return URL.createObjectURL(blob);
|
||||
}
|
||||
export function htmlEncode(text) {
|
||||
const element = document.createElement('div');
|
||||
element.textContent = text;
|
||||
return element.innerHTML;
|
||||
}
|
||||
Reference in New Issue
Block a user