File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11_GLOBAL = _GLOBAL || ( typeof window !== 'undefined' ? window : self ) ;
2+ const YAML = _GLOBAL . YAML ;
23
34/*
45 * FeatherNote Google Drive Sync
Original file line number Diff line number Diff line change 11_GLOBAL = _GLOBAL || ( typeof window !== 'undefined' ? window : self ) ;
2+ const YAML = _GLOBAL . YAML ;
23
34// --- Git Functions (isomorphic-git) ---
45
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ const YAML = {
3838 }
3939} ;
4040
41+ _GLOBAL . YAML = YAML ;
42+
4143const promiseTimeout = ( p , ms = 30e3 ) => Promise . race ( [
4244 p ,
4345 new Promise ( ( _ , reject ) => setTimeout ( ( ) => reject ( new Error ( 'Timeout' ) ) , ms ) )
Original file line number Diff line number Diff 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) -->
Original file line number Diff line number Diff line change 11_GLOBAL = _GLOBAL || ( typeof window !== 'undefined' ? window : self ) ;
2+ const YAML = _GLOBAL . YAML ;
23
34// Helper to convert hex private key to Uint8Array
45function hexToBytes ( hex ) {
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ importScripts('./libs/isomorphic-git.min.js');
55importScripts ( './libs/lightning-fs.min.js' ) ;
66importScripts ( './libs/http.min.js' ) ;
77importScripts ( './libs/js-yaml.min.js' ) ;
8+ importScripts ( './helpers.js' ) ;
89importScripts ( './s3.js' ) ;
910importScripts ( './git.js' ) ;
1011importScripts ( './nostr.js' ) ;
1112importScripts ( './gdrive.js' ) ;
12- importScripts ( './helpers.js' ) ;
1313
1414const CACHE_NAME = 'feathernote-cache-v' + DB_VERSION ;
1515
You can’t perform that action at this time.
0 commit comments