mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-24 23:09:28 -05:00
Merge pull request #1424 from PrivateBin/fix-webkit
Restore WebKit (Safari, iOS, etc.) compatibility
This commit is contained in:
commit
9da6d8b24b
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/.composer/vendor/bin"
|
export PATH="$PATH:$HOME/.composer/vendor/bin"
|
||||||
|
ln -s ./conf.sample.php cfg/conf.php
|
||||||
composer install --no-dev --optimize-autoloader
|
composer install --no-dev --optimize-autoloader
|
||||||
|
|
||||||
sudo chmod a+x "$(pwd)" && sudo rm -rf /var/www/html && sudo ln -s "$(pwd)" /var/www/html
|
sudo chmod a+x "$(pwd)" && sudo rm -rf /var/www/html && sudo ln -s "$(pwd)" /var/www/html
|
||||||
|
@ -259,7 +259,7 @@ dir = PATH "data"
|
|||||||
;version = "latest"
|
;version = "latest"
|
||||||
;bucket = "my-bucket"
|
;bucket = "my-bucket"
|
||||||
|
|
||||||
[yourls]
|
;[yourls]
|
||||||
; When using YOURLS as a "urlshortener" config item:
|
; When using YOURLS as a "urlshortener" config item:
|
||||||
; - By default, "urlshortener" will point to the YOURLS API URL, with or without
|
; - 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.
|
; 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
|
; Subresource integrity (SRI) hashes used in template files. Uncomment and set
|
||||||
; these for all js files used. See:
|
; 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
|
; 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-[…]"
|
||||||
|
@ -42,7 +42,7 @@ if ($SYNTAXHIGHLIGHTING) :
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
||||||
<?php $this->_scriptTag('js/jquery-3.7.1.js', 'async'); ?>
|
<?php $this->_scriptTag('js/jquery-3.7.1.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
if ($QRCODE) :
|
if ($QRCODE) :
|
||||||
?>
|
?>
|
||||||
@ -56,8 +56,8 @@ if ($ZEROBINCOMPATIBILITY) :
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'async'); ?>
|
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'async'); ?>
|
||||||
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'async'); ?>
|
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'async'); ?>
|
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/bootstrap-3.4.1.js', 'defer'); ?>
|
<?php $this->_scriptTag('js/bootstrap-3.4.1.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
if ($SYNTAXHIGHLIGHTING) :
|
if ($SYNTAXHIGHLIGHTING) :
|
||||||
|
@ -34,15 +34,15 @@ if ($QRCODE) :
|
|||||||
endif;
|
endif;
|
||||||
if ($ZEROBINCOMPATIBILITY) :
|
if ($ZEROBINCOMPATIBILITY) :
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/base64-1.7.js', 'async'); ?>
|
<?php $this->_scriptTag('js/base64-1.7.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'async'); ?>
|
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'async'); ?>
|
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'async'); ?>
|
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/bootstrap-5.3.3.js', 'async'); ?>
|
<?php $this->_scriptTag('js/bootstrap-5.3.3.js', 'async'); ?>
|
||||||
<?php $this->_scriptTag('js/dark-mode-switch.js', 'async'); ?>
|
<?php $this->_scriptTag('js/dark-mode-switch.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
if ($SYNTAXHIGHLIGHTING) :
|
if ($SYNTAXHIGHLIGHTING) :
|
||||||
?>
|
?>
|
||||||
@ -55,7 +55,7 @@ if ($MARKDOWN) :
|
|||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/purify-3.1.7.js', 'async'); ?>
|
<?php $this->_scriptTag('js/purify-3.1.7.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/legacy.js', 'async'); ?>
|
<?php $this->_scriptTag('js/legacy.js', 'async'); ?>
|
||||||
<?php $this->_scriptTag('js/privatebin.js', 'defer'); ?>
|
<?php $this->_scriptTag('js/privatebin.js', 'defer'); ?>
|
||||||
<!-- icon -->
|
<!-- icon -->
|
||||||
|
Loading…
Reference in New Issue
Block a user