Skip to content

Commit

Permalink
Merge pull request #34 from jdev-org/prepare-release
Browse files Browse the repository at this point in the history
Add version information in configuration file and startup logs
  • Loading branch information
pierrejego authored Oct 3, 2019
2 parents a7a21e5 + f0d5d57 commit e580fff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/mviewerstudio.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
var _conf;
var API = {};
var VERSION="3.1";

$(document).ready(function(){

//Mviewer Studio version
console.log("MviewerStudio version " + VERSION);

//Get URL Parameters
if (window.location.search) {
$.extend(API, $.parseJSON('{"' + decodeURIComponent(window.location.search.substring(1)
Expand Down Expand Up @@ -549,7 +555,7 @@ var saveApplicationParameters = function (option) {
});
themes.push(padding(0)+'</themes>');

var conf = ['<?xml version="1.0" encoding="UTF-8"?>\r\n<config>\r\n',
var conf = ['<?xml version="1.0" encoding="UTF-8"?>\r\n<config mviewerstudioversion="'+VERSION+'">\r\n',
'<metadata>\r\n'+mv.createDublinCore(config)+'\r\n</metadata>\r\n',
application,
mapoptions,
Expand Down

0 comments on commit e580fff

Please sign in to comment.