* Refactor all JS API calls #360 * Remove unused imports * Lint JS * Fix doubled api key * Formatting * Added extra logging to distance lookup * Remove the .editorconfig file in distrib * shell check fixes * Remove the .editorconfig file in distrib
This commit is contained in:
10
resources/js/config.js
Normal file
10
resources/js/config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
const base_url = document.head.querySelector('meta[name="base-url"]');
|
||||
const token = document.head.querySelector('meta[name="csrf-token"]');
|
||||
const api_key = document.head.querySelector('meta[name="api-key"]');
|
||||
|
||||
export default {
|
||||
api_key: api_key.content || '',
|
||||
base_url: base_url.content || '',
|
||||
csrf_token: token.content || '',
|
||||
};
|
||||
Reference in New Issue
Block a user