add missing files
This commit is contained in:
12
src/main2.ts
12
src/main2.ts
@@ -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));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user