Skip to content

Commit 880c153

Browse files
committed
refactor: rename fn
1 parent 5d363b2 commit 880c153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/document/DocumentCommandHandlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,7 @@ define(function (require, exports, module) {
22522252
Phoenix.app.closeWindow(true);
22532253
}
22542254
}
2255-
function attachTauriUnloadHandler() {
2255+
function _attachNativeUnloadHandler() {
22562256
Phoenix.app.onCloseWindowRequested(()=>{
22572257
_forceQuitIfNeeded();
22582258
if(closeInProgress){
@@ -2289,7 +2289,7 @@ define(function (require, exports, module) {
22892289
let isTestWindow = (new window.URLSearchParams(window.location.search || "")).get("testEnvironment");
22902290
if (!isTestWindow) {
22912291
if(Phoenix.isNativeApp) {
2292-
attachTauriUnloadHandler();
2292+
_attachNativeUnloadHandler();
22932293
} else {
22942294
attachBrowserUnloadHandler();
22952295
}

0 commit comments

Comments
 (0)