mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
Merge pull request #7 from pulsar-edit/api-rebrand
Adding branding info to global API
This commit is contained in:
commit
920eb6556e
@ -3,6 +3,10 @@
|
||||
"productName": "Atom",
|
||||
"version": "1.63.0-dev",
|
||||
"description": "A hackable text editor for the 21st Century.",
|
||||
"branding": {
|
||||
"id": "pulsar",
|
||||
"properName": "Pulsar"
|
||||
},
|
||||
"main": "./src/main-process/main.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -46,6 +46,7 @@ const TextEditorRegistry = require('./text-editor-registry');
|
||||
const AutoUpdateManager = require('./auto-update-manager');
|
||||
const StartupTime = require('./startup-time');
|
||||
const getReleaseChannel = require('./get-release-channel');
|
||||
const packagejson = require("../package.json");
|
||||
|
||||
const stat = util.promisify(fs.stat);
|
||||
|
||||
@ -219,6 +220,11 @@ class AtomEnvironment {
|
||||
commands: this.commands,
|
||||
stateStore: this.stateStore
|
||||
});
|
||||
|
||||
this.branding = {
|
||||
id: packagejson.branding.id,
|
||||
properName: packagejson.branding.properName
|
||||
};
|
||||
|
||||
// Keep instances of HistoryManager in sync
|
||||
this.disposables.add(
|
||||
|
Loading…
Reference in New Issue
Block a user