Skip to content

Commit

Permalink
mviewer#186 use proxy config value only for new project
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetanbrl committed May 25, 2023
1 parent 860e865 commit 4611cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/mviewerstudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ var getConfig = () => {
});
});
application = application.join(padding(4)) + '>' + padding(0) + '</application>';
savedProxy = `${padding(0)}<proxy url=""/>`
if ( _conf.proxy || $("#optProxyUrl").val()) {
savedProxy = `${ padding(0) }<proxy url=""/>`;
if ($("#optProxyUrl").val()) {
savedProxy = `${padding(0)}<proxy url="${$("#optProxyUrl").val() || _conf.proxy}"/>`
}
var search_params = {"bbox":false, "localities": false, "features":false, "static":false};
Expand Down

0 comments on commit 4611cbe

Please sign in to comment.