mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
using server.method() instead of direct call to $.ajax - preparation for electron without network requests
This commit is contained in:
@@ -12,11 +12,7 @@ const recentChanges = (function() {
|
||||
height: 700
|
||||
});
|
||||
|
||||
const result = await $.ajax({
|
||||
url: baseApiUrl + 'recent-changes/',
|
||||
type: 'GET',
|
||||
error: () => showError("Error getting recent changes.")
|
||||
});
|
||||
const result = await server.get('recent-changes/');
|
||||
|
||||
dialogEl.html('');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user