You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
All: Extract note renderer to separate package (WIP) (#2206)
* Started updating to use external renderer package * Added way to build renderer assets * Done mobile compatilibty * Upgrade joplin-renderer * Added joplin-renderer package
This commit is contained in:
@ -16,11 +16,6 @@ const injectedJs = {
|
||||
webviewLib: require('lib/rnInjectedJs/webviewLib'),
|
||||
};
|
||||
|
||||
const cssToJs = {
|
||||
'hljs-atom-one-dark-reasonable.css': require('lib/csstojs/hljs-atom-one-dark-reasonable.css.js'),
|
||||
'hljs-atom-one-light.css': require('lib/csstojs/hljs-atom-one-light.css.js'),
|
||||
};
|
||||
|
||||
function shimInit() {
|
||||
shim.Geolocation = GeolocationReact;
|
||||
shim.setInterval = PoorManIntervals.setInterval;
|
||||
@ -187,11 +182,6 @@ function shimInit() {
|
||||
if (!(name in injectedJs)) throw new Error(`Cannot find injectedJs file (add it to "injectedJs" object): ${name}`);
|
||||
return injectedJs[name];
|
||||
};
|
||||
|
||||
shim.loadCssFromJs = function(name) {
|
||||
if (!(name in cssToJs)) throw new Error(`Cannot find csstojs file (add it to "cssToJs" object): ${name}`);
|
||||
return cssToJs[name];
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { shimInit };
|
||||
|
Reference in New Issue
Block a user