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:
@ -2,6 +2,7 @@ const BaseModel = require('lib/BaseModel.js');
|
||||
|
||||
const migrationScripts = {
|
||||
20: require('lib/migrations/20.js'),
|
||||
27: require('lib/migrations/27.js'),
|
||||
};
|
||||
|
||||
class Migration extends BaseModel {
|
||||
@ -18,6 +19,7 @@ class Migration extends BaseModel {
|
||||
}
|
||||
|
||||
static script(number) {
|
||||
if (!migrationScripts[number]) throw new Error('Migration script has not been added to "migrationScripts" array');
|
||||
return migrationScripts[number];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user