File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ export type SupabaseContext = {
2727
2828let _contextCache : SupabaseContext | null = null ;
2929
30+ const ROAM_URL_PREFIX = "https://roamresearch.com/#/app/" ;
31+
3032const getOrCreateSpacePassword = ( ) => {
3133 const settingsConfigPageUid = getPageUidByPageTitle (
3234 DISCOURSE_CONFIG_PAGE_TITLE ,
@@ -54,8 +56,8 @@ export const getSupabaseContext = async (): Promise<SupabaseContext | null> => {
5456 const spacePassword = getOrCreateSpacePassword ( ) ;
5557 const personEmail = getCurrentUserEmail ( ) ;
5658 const personName = getCurrentUserDisplayName ( ) ;
57- const url = getRoamUrl ( ) ;
5859 const spaceName = window . roamAlphaAPI . graph . name ;
60+ const url = ROAM_URL_PREFIX + spaceName ;
5961 const platform : Platform = "Roam" ;
6062 const spaceResult = await fetchOrCreateSpaceDirect ( {
6163 password : spacePassword ,
You can’t perform that action at this time.
0 commit comments