mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-13 02:34:06 +08:00
14 lines
257 B
JavaScript
14 lines
257 B
JavaScript
const fs = require('fs')
|
|
const { shell } = require('electron');
|
|
|
|
getDirname = () => __dirname;
|
|
|
|
read = (path, callback) => {
|
|
fs.readFile(path, 'utf8', (err, data) => {
|
|
callback(err, data);
|
|
})
|
|
}
|
|
|
|
open = url => {
|
|
shell.openExternal(url);
|
|
} |