You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: electron/app/js/auto-prefs-json.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
/**
2
2
* @license
3
-
* Copyright (c) 2022, Oracle and/or its affiliates.
3
+
* Copyright (c) 2022, 2023, Oracle and/or its affiliates.
4
4
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5
5
* @ignore
6
6
*/
@@ -89,6 +89,9 @@ const AutoPrefs = (() => {
89
89
clear: ()=>{
90
90
_fields={};
91
91
},
92
+
getPath: (userDataPath)=>{
93
+
return`${userDataPath}/auto-prefs.json`;
94
+
},
92
95
/**
93
96
* Populates the in-memory data that ``AutoPrefs`` knows about, by reading and parsing the JSON content in the ``auto-prefs.json`` file.
94
97
* <p>If the <code>userDataPath</code> argument was passed, it's used as the path to the <code>auto-prefs.json</code> file. Otherwise, a check is done to see if a <code>userDataPath</code> in-memory field has been set. If so, then the value assigned to that field is used used as the path to the <code>auto-prefs.json</code> file.</p>
0 commit comments