From 9f42185400069f5273977d3c0785243d6501a188 Mon Sep 17 00:00:00 2001 From: Geriano Date: Wed, 31 Aug 2022 12:50:46 +0700 Subject: [PATCH] fix bug translation --- resources/js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/js/app.js b/resources/js/app.js index d3de868..e0f7a5b 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -17,6 +17,8 @@ const appName = window.document.getElementsByTagName('title')[0]?.innerText || ' const { $token } = JSON.parse(document.getElementById('app').dataset.page).props axios.defaults.headers.common['Authorization'] = `Bearer ${$token}` +commons.getAllDefinedTransaction() + Object.keys(commons).forEach(key => Object.defineProperty(window, key, { value: commons[key], }))