1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-17 23:27:48 +02:00
This commit is contained in:
Laurent Cozic
2020-11-19 12:28:16 +00:00
parent cd406cba51
commit 28be0dbd36
7 changed files with 150 additions and 103 deletions

View File

@@ -21,7 +21,6 @@ interface ContentScripts {
export default class Plugin {
private id_: string;
private baseDir_: string;
private manifest_: PluginManifest;
private scriptText_: string;
@@ -30,10 +29,9 @@ export default class Plugin {
private contentScripts_: ContentScripts = {};
private dispatch_: Function;
private eventEmitter_: any;
private devMode_:boolean = false;
private devMode_: boolean = false;
constructor(id: string, baseDir: string, manifest: PluginManifest, scriptText: string, logger: Logger, dispatch: Function) {
this.id_ = id;
constructor(baseDir: string, manifest: PluginManifest, scriptText: string, logger: Logger, dispatch: Function) {
this.baseDir_ = shim.fsDriver().resolve(baseDir);
this.manifest_ = manifest;
this.scriptText_ = scriptText;
@@ -43,7 +41,7 @@ export default class Plugin {
}
public get id(): string {
return this.id_;
return this.manifest.id;
}
public get devMode(): boolean {