mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Utilize location.protocol
This commit is contained in:
@@ -2,9 +2,8 @@
|
||||
|
||||
/** Load syntax highlighting
|
||||
* @param string first three characters of database system version
|
||||
* @param string 'http' or 'https' - used after compilation
|
||||
*/
|
||||
function bodyLoad(version, protocol) {
|
||||
function bodyLoad(version) {
|
||||
var jushRoot = '../externals/jush/';
|
||||
var script = document.createElement('script');
|
||||
script.src = jushRoot + 'jush.js';
|
||||
|
@@ -23,12 +23,11 @@ function cookie(assign, days) {
|
||||
}
|
||||
|
||||
/** Verify current Adminer version
|
||||
* @param string 'http' or 'https'
|
||||
*/
|
||||
function verifyVersion(protocol) {
|
||||
function verifyVersion() {
|
||||
cookie('adminer_version=0', 1);
|
||||
var script = document.createElement('script');
|
||||
script.src = protocol + '://www.adminer.org/version.php';
|
||||
script.src = location.protocol + '//www.adminer.org/version.php';
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user