mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
export.js jquery added
This commit is contained in:
parent
12c8d10750
commit
4b89b89902
3 changed files with 23 additions and 8 deletions
|
@ -903,10 +903,15 @@ function savePage (name) {
|
|||
content = content.replace(/<script[^>]+><\/script>/g, '');
|
||||
|
||||
try {
|
||||
Util.log('info', app.getAppPath());
|
||||
fs.copyFileSync(app.getAppPath() + '/dist/js/export.js', path.join(filesPath, 'export.js'));
|
||||
const js = [ 'export', 'jquery' ];
|
||||
const ap = app.getAppPath();
|
||||
|
||||
js.forEach((it) => {
|
||||
fs.copyFileSync(`${ap}/dist/js/${it}.js`, path.join(filesPath, it + '.js'));
|
||||
});
|
||||
|
||||
content = content.replace('<!-- %REPLACE% -->', `
|
||||
<script src="./${fn}/jquery.js" type="text/javascript"></script>
|
||||
<script src="./${fn}/export.js" type="text/javascript"></script>
|
||||
`);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue