UNPKG

@fto-consult/common

Version:

Un ensemble de bibliothèques et d'utilistaires communs pour le développement d'applications javascript

8 lines 449 B
// Copyright 2022 @fto-consult/Boris Fouomene. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. import get from "./index.js"; import {isElectron} from "$cplatform"; export default function getElectronDeviceId (){ return get() || isElectron() && typeof ELECTRON !=='undefined' && typeof window !=='undefined' && ELECTRON && ELECTRON?.DEVICE?.computerName || ''; }