PDF Reader Settings, New Reading Modes, and lots of fixes (#2828)

Co-authored-by: Elry <144011449+ElryWeeb@users.noreply.github.com>
Co-authored-by: AlienHack <the4got10@windowslive.com>
Co-authored-by: William Brockhus <pickeringw@gmail.com>
Co-authored-by: Shivam Amin <xShivam.Amin@gmail.com>
This commit is contained in:
Joe Milazzo 2024-03-30 15:07:03 -05:00 committed by GitHub
parent f22f30b5a9
commit 2bde0ac82a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
55 changed files with 4410 additions and 439 deletions

View file

@ -14,6 +14,15 @@ function generateChecksum(str, algorithm, encoding) {
const result = {};
// Generate directory if it doesn't exist
const distFolderPath = './dist/';
const browserFolderPath = './dist/browser/';
if (!fs.existsSync(browserFolderPath)) {
console.log('Creating ./dist/browser folder');
fs.mkdirSync(distFolderPath, 0o744);
fs.mkdirSync(browserFolderPath, 0o744);
}
// Remove file if it exists
const cacheBustingFilePath = './i18n-cache-busting.json';
if (fs.existsSync(cacheBustingFilePath)) {