Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Aug 2, 2024
1 parent 3270372 commit ad267f1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions public/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,14 @@ export var Plugins = function(app) {
app.data.storage.getGist(app.settings.gistPluginsFile()).then(({filesInGist}) => {
console.log({ filesInGist });
Object.values(filesInGist).forEach(gistFile => {
console.log({ gistFile });
if (gistFile.language === 'JavaScript') {
console.log({ gistFile });

try {
app.storage
app.data.storage
.getContentOrRaw(gistFile.content, gistFile.raw_url)
.then(content => {
console.log({content})
console.log({content})//doesnt resolve?
importModuleWeb(content, gistFile.filename).then(
importedPlugin => {
const newPlugin = importedPlugin(pluginApiMethods);
Expand All @@ -292,11 +293,11 @@ export var Plugins = function(app) {
scriptEle.setAttribute('src', dependency);
document.body.appendChild(scriptEle);
scriptEle.addEventListener('load', () => {
app.log('File loaded', dependency);
console.log('File loaded', dependency);
});

scriptEle.addEventListener('error', ev => {
app.log('Error on loading file', ev);
console.log('Error on loading file', ev);
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion public/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.4.283"
"version": "0.4.284"
}
2 changes: 1 addition & 1 deletion sw.js

Large diffs are not rendered by default.

0 comments on commit ad267f1

Please sign in to comment.