Skip to content

Commit

Permalink
fix(config): initial theme set to bs3
Browse files Browse the repository at this point in the history
should fix #1307
  • Loading branch information
valorkin committed Dec 16, 2016
1 parent 860be75 commit b83fd0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/ng2-bootstrap-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { window } from './facade/browser';
export enum Ng2BootstrapTheme {BS3 = 1, BS4 = 2}

export class Ng2BootstrapConfig {
protected static _theme:Ng2BootstrapTheme;
protected static _theme:Ng2BootstrapTheme = Ng2BootstrapTheme.BS3;

public static get theme():Ng2BootstrapTheme {
// hack as for now
if (window.__theme === 'bs4') {
return Ng2BootstrapTheme.BS4;
}
return (this._theme || Ng2BootstrapTheme.BS3);
return this._theme;
}

public static set theme(v:Ng2BootstrapTheme) {
Expand Down

0 comments on commit b83fd0d

Please sign in to comment.