Skip to content

Commit

Permalink
chore: give integrated browser unique id as to not conflict with othe…
Browse files Browse the repository at this point in the history
…r plugins
  • Loading branch information
Aetherinox committed Apr 2, 2024
1 parent d2958d0 commit c8c47b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/Saturyn/CodeblockProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Options = SaturynParams &

export function SaturynCodeblock( plugin: GistrPlugin )
{
plugin.registerMarkdownCodeBlockProcessor( 'saturyn', ( code, el, arg ) =>
plugin.registerMarkdownCodeBlockProcessor( 'gistr-web', ( code, el, arg ) =>
{
el.addClass( 'saturyn-view' )
const pnl = SaturynHandleSyntax( plugin, code )
Expand Down
2 changes: 1 addition & 1 deletion src/api/Saturyn/FormPortalEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const SaturynFormPortalEdit = ( plugin: GistrPlugin, contentEl: HTMLEleme
.onChange( async ( val ) =>
{
if ( val === '' )
val = 'saturyn'
val = 'gistr-web'

params.profileKey = val
}),
Expand Down
4 changes: 2 additions & 2 deletions src/api/Saturyn/ParametersHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const SaturynParamsHandle = ( portal: Partial< SaturynParams > ): Saturyn
if ( portal.id === '' || portal.id === undefined )
{
let key_id = portal.url!
if ( portal.profileKey != undefined && portal.profileKey !== 'saturyn' && portal.profileKey !== '' )
if ( portal.profileKey != undefined && portal.profileKey !== 'gistr-web' && portal.profileKey !== '' )
{
key_id += portal.profileKey
}
Expand All @@ -21,7 +21,7 @@ export const SaturynParamsHandle = ( portal: Partial< SaturynParams > ): Saturyn

if ( portal.profileKey === '' || portal.profileKey === undefined )
{
portal.profileKey = 'saturyn'
portal.profileKey = 'gistr-web'
}

if ( portal.zoom === 0 || portal.zoom === undefined )
Expand Down
2 changes: 1 addition & 1 deletion src/api/Saturyn/Template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const SaturynTemplate = ( ): SaturynParams =>
url: '',
hasRibbon: true,
dock: 'right',
profileKey: 'saturyn',
profileKey: 'gistr-web',
zoom: 1.0,
userAgent: PortalUseragent
}
Expand Down

0 comments on commit c8c47b5

Please sign in to comment.