app.get("/",(req,res)=>{
console.log("yes");
customProtocolCheck(
"mycustomprotocol://params",
() => {
console.log("Custom protocol not found.");
},
() => {
console.log("Custom protocol found and opened the file successfully.");
}, 5000
);
});
can you help me with this? . What am I doing wrong here
ReferenceError: window is not defined
at Object.getUserAgent (/Users/pranay/Desktop/web/node_modules/custom-protocol-check/index.js:3:5)
at Object.isEdge (/Users/pranay/Desktop/web/node_modules/custom-protocol-check/index.js:59:19)
at protocolCheck (/Users/pranay/Desktop/web/node_modules/custom-protocol-check/index.js:256:15)
at file:///Users/pranay/Desktop/web/index.js:9:9
at Layer.handle [as handle_request] (/Users/pranay/Desktop/web/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/pranay/Desktop/web/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/Users/pranay/Desktop/web/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/Users/pranay/Desktop/web/node_modules/express/lib/router/layer.js:95:5)
at /Users/pranay/Desktop/web/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/Users/pranay/Desktop/web/node_modules/express/lib/router/index.js:346:12)