license export class BrowserDevice { static pluginName : string = 'BrowserDevice' ; constructor ( public kernel ) { } onInit ( ) { console . log ( 'onInit' ) ; } onDestory ( ) { console . log ( 'onDestory' ) ; } apply ( ) { const navigator = window . navigator ; const event = { local : navigator . language , userAgent : navigator . userAgent , time : new Date ( ) . toISOString ( ) , } ; this . kernel . hooks . trigger ( 'session' , event ) ; } }