mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-05 11:41:32 +00:00
Hot patch more Grocy Javascript braindamage
This commit is contained in:
parent
c9f761e253
commit
0cfd135f99
1 changed files with 2 additions and 1 deletions
|
@ -5,8 +5,9 @@ index fceaaa0..bfc76e6 100644
|
||||||
@@ -87,7 +87,7 @@
|
@@ -87,7 +87,7 @@
|
||||||
Grocy.Components = { };
|
Grocy.Components = { };
|
||||||
Grocy.Mode = '{{ GROCY_MODE }}';
|
Grocy.Mode = '{{ GROCY_MODE }}';
|
||||||
Grocy.BaseUrl = '{{ $U('/') }}';
|
- Grocy.BaseUrl = '{{ $U('/') }}';
|
||||||
- Grocy.CurrentUrlRelative = "/" + window.location.href.split('?')[0].replace(Grocy.BaseUrl, "");
|
- Grocy.CurrentUrlRelative = "/" + window.location.href.split('?')[0].replace(Grocy.BaseUrl, "");
|
||||||
|
+ Grocy.BaseUrl = window.location.origin + '{{ $U('/') }}';
|
||||||
+ Grocy.CurrentUrlRelative = "/" + window.location.pathname.replace(Grocy.BaseUrl, "");
|
+ Grocy.CurrentUrlRelative = "/" + window.location.pathname.replace(Grocy.BaseUrl, "");
|
||||||
Grocy.ActiveNav = '@yield('activeNav', '')';
|
Grocy.ActiveNav = '@yield('activeNav', '')';
|
||||||
Grocy.Culture = '{{ GROCY_LOCALE }}';
|
Grocy.Culture = '{{ GROCY_LOCALE }}';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue