ad69c5017b
It's sad but it's not working. For multiple releases this should be already broken which shows how often it's used. As there is also a security issue related to that, it's better to remove the feature completely. Whoever wants to rewrite it, feel free to go. This commit removes the Google Drive integration from HackMD's Frontend editor and this way removes the need to provide any API key and Client ID in the frontend. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
13 lines
733 B
JavaScript
13 lines
733 B
JavaScript
export const DROPBOX_APP_KEY = window.DROPBOX_APP_KEY || ''
|
|
|
|
export const domain = window.domain || '' // domain name
|
|
export const urlpath = window.urlpath || '' // sub url path, like: www.example.com/<urlpath>
|
|
export const debug = window.debug || false
|
|
|
|
export const port = window.location.port
|
|
export const serverurl = `${window.location.protocol}//${domain || window.location.hostname}${port ? ':' + port : ''}${urlpath ? '/' + urlpath : ''}`
|
|
window.serverurl = serverurl
|
|
export const noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1]
|
|
export const noteurl = `${serverurl}/${noteid}`
|
|
|
|
export const version = window.version
|