Backwards compatibility for global options

This commit is contained in:
MattIPv4
2020-05-27 21:15:30 +01:00
parent 5a4714cb40
commit 193b50efc7
3 changed files with 75 additions and 1 deletions

View File

@@ -151,8 +151,10 @@ limitations under the License.
},
mounted() {
// Import any data from the URL query params, defaulting to one domain
// Fallback to the window hash if no search query params, from the Angular version of nginxconfig
// The config file watcher will handle setting the app as ready
importData(window.location.search, this.$data.domains, this.$data.global, this.$nextTick);
const query = window.location.search || window.location.hash.slice(1);
importData(query, this.$data.domains, this.$data.global, this.$nextTick);
},
methods: {
changes(index) {