Skip to content

Unify config.js and URL parameters.#34

Open
matopeto wants to merge 1 commit intomasterfrom
refactor-configuration
Open

Unify config.js and URL parameters.#34
matopeto wants to merge 1 commit intomasterfrom
refactor-configuration

Conversation

@matopeto
Copy link
Owner

⚠️ Breaking change ⚠️

Removed old parameters:

  • api_params -> use structured params (city/lat/lon + appId + lang + units)
  • api_locParams -> replaced by city or lat + lon
  • api_appId -> replaced by appId
  • api_lang -> replaced by lang
  • api_units -> replaced by units
  • night -> replaced by nightMode
  • night_mode -> replaced by nightMode
  • refreshTime -> replaced by refreshInterval (minutes)

Removed old parameters:

- api_params -> use structured params (city/lat/lon + appId + lang + units)
- api_locParams -> replaced by city or lat + lon
- api_appId -> replaced by appId
- api_lang -> replaced by lang
- api_units -> replaced by units
- night -> replaced by nightMode
- night_mode -> replaced by nightMode
- refreshTime -> replaced by refreshInterval (minutes)
setIfPresent("units");
setIfPresent("night");
setIfPresent("nightMode");
setIfPresent("appId");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appId premenovat mozno na apiKey alebo nieco podobne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant