Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added option for base-href #573

Merged
merged 2 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ import { ChartsModule } from 'ng2-charts';
import { MarkdownModule } from 'ngx-markdown';
import { NgxDaterangepickerMd } from './components/controls/daterangepicker';
import { UpdateAlertComponent } from './components/controls/update-alert/update-alert.component';
import {APP_BASE_HREF} from '@angular/common';
import {
NgxMatDatetimePickerModule,
NgxMatNativeDateModule,
Expand Down Expand Up @@ -460,6 +461,7 @@ export const CUSTOM_MAT_COLOR_FORMATS: MatColorFormats = {
{ provide: ACE_CONFIG, useValue: DEFAULT_ACE_CONFIG },
{ provide: MAT_COLOR_FORMATS, useValue: CUSTOM_MAT_COLOR_FORMATS },
{ provide: PreferencesContentMapping, useClass: PreferencesContentMapping },
{ provide: APP_BASE_HREF, useValue: window['base-href'] },
TransactionFilterService
],
bootstrap: [AppComponent]
Expand Down
3 changes: 3 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<title>HOMER</title>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=1.0, user-scalable=no" />
<script>
window['base-href'] = window.location.pathname;
</script>
<style type="text/css">
@keyframes rot001 {
0% { stroke-dashoffset: 268.60617px; transform: rotate(0);
Expand Down