import { Injectable, inject } from '@angular/core';
import { ElectronBridgeService } from './electron/electron-bridge.service';

@Injectable({ providedIn: 'root' })
export class PlatformService {
  readonly isElectron: boolean;
  readonly isBrowser: boolean;
  private readonly electronBridge = inject(ElectronBridgeService);

  constructor() {
    this.isElectron = this.electronBridge.isAvailable;

    this.isBrowser = !this.isElectron;
  }
}
