feat: release passwordless hierarchical APT v1.2.5
This commit is contained in:
+10
-1
@@ -1,6 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
(function exposeRendererController(globalScope) {
|
||||
function shouldShowPairingOnboarding({
|
||||
paired = false,
|
||||
secretVisible = false,
|
||||
connected = false,
|
||||
manuallyOpen = false,
|
||||
} = {}) {
|
||||
return manuallyOpen || !paired || (secretVisible && !connected);
|
||||
}
|
||||
|
||||
function createRendererController({
|
||||
disconnect,
|
||||
renderConnectionState,
|
||||
@@ -35,7 +44,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
const api = Object.freeze({ createRendererController });
|
||||
const api = Object.freeze({ createRendererController, shouldShowPairingOnboarding });
|
||||
if (typeof module !== 'undefined' && module.exports) module.exports = api;
|
||||
if (globalScope) globalScope.AptRendererController = api;
|
||||
}(typeof window !== 'undefined' ? window : undefined));
|
||||
|
||||
Reference in New Issue
Block a user