rerun CI
This commit is contained in:
		@ -1,7 +1,7 @@
 | 
			
		||||
import { base64ToString } from 'lib/base64'
 | 
			
		||||
import { CREATE_FILE_URL_PARAM, DEFAULT_FILE_NAME } from 'lib/constants'
 | 
			
		||||
import { useEffect } from 'react'
 | 
			
		||||
import { useSearchParams } from 'react-router-dom'
 | 
			
		||||
import { useLocation, useSearchParams } from 'react-router-dom'
 | 
			
		||||
import { useCommandsContext } from './useCommandsContext'
 | 
			
		||||
import { useSettingsAuthContext } from './useSettingsAuthContext'
 | 
			
		||||
import { isDesktop } from 'lib/isDesktop'
 | 
			
		||||
@ -16,6 +16,7 @@ import { baseUnitsUnion } from 'lib/settings/settingsTypes'
 | 
			
		||||
 * URL parameters.
 | 
			
		||||
 */
 | 
			
		||||
export function useCreateFileLinkQuery() {
 | 
			
		||||
  const location = useLocation()
 | 
			
		||||
  const [searchParams] = useSearchParams()
 | 
			
		||||
  const { commandBarSend } = useCommandsContext()
 | 
			
		||||
  const { settings } = useSettingsAuthContext()
 | 
			
		||||
@ -41,7 +42,7 @@ export function useCreateFileLinkQuery() {
 | 
			
		||||
            settings.context.modeling.defaultUnit.default) ??
 | 
			
		||||
          settings.context.modeling.defaultUnit.current,
 | 
			
		||||
      }
 | 
			
		||||
      console.log('createFileParam', params)
 | 
			
		||||
      console.log('createFileParam', { ...params, location })
 | 
			
		||||
 | 
			
		||||
      // For initializing the command arguments, we actually want `method` to be undefined
 | 
			
		||||
      // so that we don't skip it in the command palette.
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,8 @@ import {
 | 
			
		||||
  shell,
 | 
			
		||||
  nativeTheme,
 | 
			
		||||
} from 'electron'
 | 
			
		||||
import path from 'path'
 | 
			
		||||
import path, { join } from 'path'
 | 
			
		||||
import fs from 'fs'
 | 
			
		||||
import { Issuer } from 'openid-client'
 | 
			
		||||
import { Bonjour, Service } from 'bonjour-service'
 | 
			
		||||
// @ts-ignore: TS1343
 | 
			
		||||
@ -395,6 +396,10 @@ function registerStartupListeners() {
 | 
			
		||||
    event.preventDefault()
 | 
			
		||||
 | 
			
		||||
    console.log('open-url', url)
 | 
			
		||||
    fs.writeFileSync(
 | 
			
		||||
      '/Users/frankjohnson/open-url.txt',
 | 
			
		||||
      `at ${new Date().toLocaleTimeString()} opened url: ${url}`
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    // If we have a mainWindow, lets open another window.
 | 
			
		||||
    if (mainWindow) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user