mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 01:44:53 +10:00
- remove eslint from functions project
This commit is contained in:
+4
-4
@@ -24,10 +24,10 @@ exports.printSinglePageResume = functions.https.onRequest((req, res) => {
|
||||
await timeout(5000);
|
||||
await page.emulateMediaType('print');
|
||||
const height = await page.evaluate(() => {
|
||||
var body = document.body,
|
||||
html = document.documentElement;
|
||||
const { body } = document;
|
||||
const html = document.documentElement;
|
||||
|
||||
var height = Math.max(
|
||||
const maxHeight = Math.max(
|
||||
body.scrollHeight,
|
||||
body.offsetHeight,
|
||||
html.clientHeight,
|
||||
@@ -35,7 +35,7 @@ exports.printSinglePageResume = functions.https.onRequest((req, res) => {
|
||||
html.offsetHeight,
|
||||
);
|
||||
|
||||
return height;
|
||||
return maxHeight;
|
||||
});
|
||||
const pdf = await page.pdf({
|
||||
printBackground: true,
|
||||
|
||||
Reference in New Issue
Block a user