typescript is the best thing ever
and everyone should use it
This commit is contained in:
parent
6a394f818d
commit
be5b1d637f
1 changed files with 2 additions and 5 deletions
|
@ -428,9 +428,8 @@ export class BrowserWindow {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/themes/:theme/*", (req, res) => {
|
app.get("/themes/:theme/*", (req: {params: {theme: string, 0: string}}, res) => {
|
||||||
const theme = req.params.theme;
|
const theme = req.params.theme;
|
||||||
// @ts-ignore
|
|
||||||
const file = req.params[0];
|
const file = req.params[0];
|
||||||
const themePath = join(utils.getPath('srcPath'), "./renderer/themes/", theme);
|
const themePath = join(utils.getPath('srcPath'), "./renderer/themes/", theme);
|
||||||
const userThemePath = join(utils.getPath('themes'), theme);
|
const userThemePath = join(utils.getPath('themes'), theme);
|
||||||
|
@ -443,9 +442,8 @@ export class BrowserWindow {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/plugins/:plugin/*", (req, res) => {
|
app.get("/plugins/:plugin/*", (req: {params: {plugin: string, 0: string}}, res) => {
|
||||||
const plugin = req.params.plugin;
|
const plugin = req.params.plugin;
|
||||||
// @ts-ignore
|
|
||||||
const file = req.params[0];
|
const file = req.params[0];
|
||||||
const pluginPath = join(utils.getPath('plugins'), plugin);
|
const pluginPath = join(utils.getPath('plugins'), plugin);
|
||||||
console.log(pluginPath)
|
console.log(pluginPath)
|
||||||
|
@ -976,7 +974,6 @@ export class BrowserWindow {
|
||||||
title: 'Share',
|
title: 'Share',
|
||||||
urls: [url]
|
urls: [url]
|
||||||
};
|
};
|
||||||
// @ts-ignore
|
|
||||||
const shareMenu = new ShareMenu(options);
|
const shareMenu = new ShareMenu(options);
|
||||||
shareMenu.popup();
|
shareMenu.popup();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue