diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 9357442f..d8f50136 100755 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -1,6 +1,7 @@ #!/bin/sh export PATH="$PATH:$HOME/.composer/vendor/bin" +ln -s ./conf.sample.php cfg/conf.php composer install --no-dev --optimize-autoloader sudo chmod a+x "$(pwd)" && sudo rm -rf /var/www/html && sudo ln -s "$(pwd)" /var/www/html diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php index f91c5e89..e9880471 100644 --- a/cfg/conf.sample.php +++ b/cfg/conf.sample.php @@ -259,7 +259,7 @@ dir = PATH "data" ;version = "latest" ;bucket = "my-bucket" -[yourls] +;[yourls] ; When using YOURLS as a "urlshortener" config item: ; - By default, "urlshortener" will point to the YOURLS API URL, with or without ; credentials, and will be visible in public on the PrivateBin web page. @@ -280,4 +280,4 @@ dir = PATH "data" ; Subresource integrity (SRI) hashes used in template files. Uncomment and set ; these for all js files used. See: ; https://github.com/PrivateBin/PrivateBin/wiki/FAQ#user-content-how-to-make-privatebin-work-when-i-have-changed-some-javascript-files -;privatebin.js = sha512-[…] +;js/privatebin.js = "sha512-[…]" diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index a0199012..6d7b7483 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -42,7 +42,7 @@ if ($SYNTAXHIGHLIGHTING) : endif; ?> - _scriptTag('js/jquery-3.7.1.js', 'async'); ?> + _scriptTag('js/jquery-3.7.1.js', 'defer'); ?> @@ -56,8 +56,8 @@ if ($ZEROBINCOMPATIBILITY) : endif; ?> _scriptTag('js/zlib-1.3.1.js', 'async'); ?> - _scriptTag('js/base-x-4.0.0.js', 'async'); ?> - _scriptTag('js/rawinflate-0.3.js', 'async'); ?> + _scriptTag('js/base-x-4.0.0.js', 'defer'); ?> + _scriptTag('js/rawinflate-0.3.js', 'defer'); ?> _scriptTag('js/bootstrap-3.4.1.js', 'defer'); ?> - _scriptTag('js/base64-1.7.js', 'async'); ?> + _scriptTag('js/base64-1.7.js', 'defer'); ?> - _scriptTag('js/zlib-1.3.1.js', 'async'); ?> - _scriptTag('js/base-x-4.0.0.js', 'async'); ?> - _scriptTag('js/rawinflate-0.3.js', 'async'); ?> + _scriptTag('js/zlib-1.3.1.js', 'defer'); ?> + _scriptTag('js/base-x-4.0.0.js', 'defer'); ?> + _scriptTag('js/rawinflate-0.3.js', 'defer'); ?> _scriptTag('js/bootstrap-5.3.3.js', 'async'); ?> - _scriptTag('js/dark-mode-switch.js', 'async'); ?> + _scriptTag('js/dark-mode-switch.js', 'defer'); ?> @@ -55,7 +55,7 @@ if ($MARKDOWN) : - _scriptTag('js/purify-3.1.7.js', 'async'); ?> + _scriptTag('js/purify-3.1.7.js', 'defer'); ?> _scriptTag('js/legacy.js', 'async'); ?> _scriptTag('js/privatebin.js', 'defer'); ?>