You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-24 23:26:50 +02:00
Desktop: Allow customising application layout
This commit is contained in:
@ -23,7 +23,7 @@ export default class WebviewController extends ViewController {
|
||||
private messageListener_: Function = null;
|
||||
private closeResponse_: CloseResponse = null;
|
||||
|
||||
constructor(id: string, pluginId: string, store: any, baseDir: string) {
|
||||
constructor(id: string, pluginId: string, store: any, baseDir: string, containerType: ContainerType) {
|
||||
super(id, pluginId, store);
|
||||
this.baseDir_ = toSystemSlashes(baseDir, 'linux');
|
||||
|
||||
@ -33,7 +33,7 @@ export default class WebviewController extends ViewController {
|
||||
view: {
|
||||
id: this.handle,
|
||||
type: this.type,
|
||||
containerType: ContainerType.Panel,
|
||||
containerType: containerType,
|
||||
html: '',
|
||||
scripts: [],
|
||||
opened: false,
|
||||
@ -68,10 +68,6 @@ export default class WebviewController extends ViewController {
|
||||
return this.storeView.containerType;
|
||||
}
|
||||
|
||||
public set containerType(containerType: ContainerType) {
|
||||
this.setStoreProp('containerType', containerType);
|
||||
}
|
||||
|
||||
public async addScript(path: string) {
|
||||
const fullPath = toSystemSlashes(shim.fsDriver().resolve(`${this.baseDir_}/${path}`), 'linux');
|
||||
|
||||
|
Reference in New Issue
Block a user