Skip to content

Commit

Permalink
Merge pull request #59 from portlandtransport/dev
Browse files Browse the repository at this point in the history
add application_host logic to horizontal
  • Loading branch information
portlandtransport authored Jan 21, 2025
2 parents 28bf38f + 083942d commit e0389d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/transitBoardHorizontal/transitBoardHorizontal.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ if (typeof options.platform === 'object') {
jQuery.ajax({
dataType: transitBoardHorizontal.access_method,
url: "//ta-web-services.com/health_update.php",
data: { timestamp: start_time, start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
data: { timestamp: start_time, start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, application_host: window.location.protocol+'//'+window.location.host+'/', "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
error: function() {
jQuery.ajax({
dataType: transitBoardHorizontal.access_method,
url: "//transitappliance.com/health_update.php",
data: { timestamp: start_time, start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
data: { timestamp: start_time, start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, application_host: window.location.protocol+'//'+window.location.host+'/', "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
error: function(xhrObj,errorText,errorThrown) {
if (typeof newrelic === "object") {
newrelic.addPageAction("HC1: Startup not recorded",{'errorText': errorText, 'errorThrown': errorThrown});
Expand All @@ -272,7 +272,7 @@ setInterval(function(){
url: "//ta-web-services.com/health_update.php",
dataType: transitBoardHorizontal.access_method,
cache: false,
data: { timestamp: ((new Date)).getTime(), start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
data: { timestamp: ((new Date)).getTime(), start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, application_host: window.location.protocol+'//'+window.location.host+'/', "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
success: function(data) {
if( typeof data != "undefined" && data.reset == true ) {
reset_app();
Expand All @@ -283,7 +283,7 @@ setInterval(function(){
url: "//transitappliance.com/health_update.php",
dataType: transitBoardHorizontal.access_method,
cache: false,
data: { timestamp: ((new Date)).getTime(), start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
data: { timestamp: ((new Date)).getTime(), start_time: start_time, version: 'N/A', "id": appliance['id'], application_id: transitBoardHorizontal.APP_ID, application_name: transitBoardHorizontal.APP_NAME, application_version: transitBoardHorizontal.APP_VERSION, application_host: window.location.protocol+'//'+window.location.host+'/', "height": jQuery(window).height(), "width": jQuery(window).width(), "platform": platform },
success: function(data) {
if( typeof data != "undefined" && data.reset == true ) {
reset_app();
Expand Down

0 comments on commit e0389d2

Please sign in to comment.