mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 07:31:33 +00:00
fix export markdown to pdf
This commit is contained in:
3
node_modules/leanote_protocol.js
generated
vendored
3
node_modules/leanote_protocol.js
generated
vendored
@@ -1,5 +1,6 @@
|
|||||||
var protocol = require('protocol');
|
var protocol = require('protocol');
|
||||||
var File = require('file_main');
|
var File = require('file_main');
|
||||||
|
var app = require('app');
|
||||||
|
|
||||||
var leanoteProtocol = {
|
var leanoteProtocol = {
|
||||||
destroy: function (callback) {
|
destroy: function (callback) {
|
||||||
@@ -34,7 +35,7 @@ var leanoteProtocol = {
|
|||||||
var prefix = 'leanote://public';
|
var prefix = 'leanote://public';
|
||||||
// leanote://public/libs/MathJax/MathJax.js?config=TeX-AMS_HTML Failed to load resource: net::ERR_FILE_NOT_FOUND
|
// leanote://public/libs/MathJax/MathJax.js?config=TeX-AMS_HTML Failed to load resource: net::ERR_FILE_NOT_FOUND
|
||||||
if (url.substr(0, prefix.length) == prefix) {
|
if (url.substr(0, prefix.length) == prefix) {
|
||||||
var path = process.cwd() + url.substr('leanote:/'.length);
|
var path = app.getAppPath() + url.substr('leanote:/'.length);
|
||||||
if (path.indexOf('?') >= 0) {
|
if (path.indexOf('?') >= 0) {
|
||||||
path = path.substr(0, path.indexOf('?'));
|
path = path.substr(0, path.indexOf('?'));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user