Skip to content

Commit 6914654

Browse files
author
djinni-hppro
committed
..
1 parent fbb4a25 commit 6914654

7 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/gdrive.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
_GLOBAL = _GLOBAL || (typeof window !== 'undefined' ? window : self);
2+
const YAML = _GLOBAL.YAML;
23

34
/*
45
* FeatherNote Google Drive Sync

src/git.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
_GLOBAL = _GLOBAL || (typeof window !== 'undefined' ? window : self);
2+
const YAML = _GLOBAL.YAML;
23

34
// --- Git Functions (isomorphic-git) ---
45

src/helpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const YAML = {
3838
}
3939
};
4040

41+
_GLOBAL.YAML = YAML;
42+
4143
const promiseTimeout = (p, ms=30e3) => Promise.race([
4244
p,
4345
new Promise((_, reject) => setTimeout(() => reject(new Error('Timeout')), ms))

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,12 +510,12 @@ <h4 class="text-sm font-bold" x-text="toast.title"></h4>
510510
<script>
511511
let _GLOBAL = typeof window !== 'undefined' ? window : self;
512512
</script>
513+
<script defer src="/helpers.js?v=___VERSION___"></script>
513514
<!-- <script type="module" src="/ipfs.js?v=___VERSION___"></script> -->
514515
<script defer src="/git.js?v=___VERSION___"></script>
515516
<script defer src="/s3.js?v=___VERSION___"></script>
516517
<!-- <script defer src="/nostr.js?v=___VERSION___"></script> -->
517518
<script defer src="/gdrive.js?v=___VERSION___"></script>
518-
<script defer src="/helpers.js?v=___VERSION___"></script>
519519
<script defer src="/index.js?v=___VERSION___" fetchpriority="high"></script>
520520

521521
<!-- AlpineJS (should be load after the other required x-data functions are loaded) -->

src/nostr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
_GLOBAL = _GLOBAL || (typeof window !== 'undefined' ? window : self);
2+
const YAML = _GLOBAL.YAML;
23

34
// Helper to convert hex private key to Uint8Array
45
function hexToBytes(hex) {

src/s3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
_GLOBAL = _GLOBAL || (typeof window !== 'undefined' ? window : self);
2+
const YAML = _GLOBAL.YAML;
23

34
// --- S3 Functions (Client-side AWS SDK v2) ---
45
// Assumes AWS SDK is loaded globally or loaded dynamically

src/serviceworker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ importScripts('./libs/isomorphic-git.min.js');
55
importScripts('./libs/lightning-fs.min.js');
66
importScripts('./libs/http.min.js');
77
importScripts('./libs/js-yaml.min.js');
8+
importScripts('./helpers.js');
89
importScripts('./s3.js');
910
importScripts('./git.js');
1011
importScripts('./nostr.js');
1112
importScripts('./gdrive.js');
12-
importScripts('./helpers.js');
1313

1414
const CACHE_NAME = 'feathernote-cache-v' + DB_VERSION;
1515

0 commit comments

Comments
 (0)