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