mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Use HTTP protocol if possible - adminer.org certificate is missing in Opera
This commit is contained in:
@@ -23,11 +23,12 @@ function cookie(assign, days, params) {
|
||||
}
|
||||
|
||||
/** Verify current Adminer version
|
||||
* @param string 'http' or 'https'
|
||||
*/
|
||||
function verifyVersion() {
|
||||
function verifyVersion(protocol) {
|
||||
cookie('adminer_version=0', 1);
|
||||
var script = document.createElement('script');
|
||||
script.src = 'https://www.adminer.org/version.php';
|
||||
script.src = protocol + '://www.adminer.org/version.php';
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user