updated screen placement of window
This commit is contained in:
@@ -51,7 +51,7 @@ app.get("*", (req, res) => {
|
||||
const fileExtension = path.extname(file).toLowerCase();
|
||||
if (isFileTypeToOpenInNewTab(fileExtension)) {
|
||||
fileLocationEncoding = 'http://localhost:3000/' + convertedString
|
||||
linkAttributes = `onclick="window.open('${fileLocationEncoding}', 'fileWindow', 'width=600,height=400');"`;
|
||||
linkAttributes = `onclick="window.open('${fileLocationEncoding}', 'fileWindow', 'width=600,height=400,top=540,left=700');"`;
|
||||
icon = getFileIcon(fileExtension, decodeURIComponent(convertedString))
|
||||
return `<div class='file' ${linkAttributes}>
|
||||
${icon}
|
||||
|
||||
Reference in New Issue
Block a user