This PR refactors the futureLocation function to app/static/js/hostname.js and renames it to determineFutureOrigin. This change is needed to allow the function to be reused by https://github.com/tiny-pilot/tinypilot-pro/pull/1169
This is mostly a non-functional change with the following caveats:
Related https://github.com/tiny-pilot/tinypilot-pro/issues/1162 Resolves https://github.com/tiny-pilot/tinypilot/issues/771
This PR refactors the
futureLocation
function toapp/static/js/hostname.js
and renames it todetermineFutureOrigin
. This change is needed to allow the function to be reused by https://github.com/tiny-pilot/tinypilot-pro/pull/1169This is mostly a non-functional change with the following caveats:
futureLocation
determineFutureOrigin
oldHostname
variable