add missing files

This commit is contained in:
2025-04-27 10:11:10 -07:00
parent 15c95e5c59
commit 63d7b276db
8 changed files with 3859 additions and 282 deletions

View File

@@ -35,7 +35,7 @@ import { openDatabase, getData, addData, addDataArray, clearData, deleteData, me
import { generateID } from "IDUtils";
import { PeerManager } from "PeerManager";
import {log, renderLog, setLogVisibility} from "log"
import {log, logID, renderLog, setLogVisibility} from "log"
// import {PeerConnection} from "webRTC";
@@ -109,12 +109,6 @@ function uuidToBase58(uuid: string): string {
return encodeBase58(bytes);
}
function logID(ID: string) {
return ID.substring(0, 5);
}
// function log(message:string) {
// console.log.apply(null, log(message);
// let log = document.getElementById("log");
@@ -175,8 +169,8 @@ window.addEventListener('scroll', () => {
// Check if scrolled to bottom
if (scrollPoint >= totalPageHeight) {
console.log.apply(null, log('Scrolled to the bottom!'));
console.log.apply(null, log(scrollPoint, totalPageHeight));
// console.log.apply(null, log('Scrolled to the bottom!'));
// console.log.apply(null, log(scrollPoint, totalPageHeight));
}
});