File tree Expand file tree Collapse file tree
components/simple-transcription Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -788,25 +788,6 @@ export default class SimpleTranscriptionInterface extends HTMLElement {
788788 return TPEN . activeProject ?. tools ?. find ( tool => tool . toolName === toolName )
789789 }
790790
791- fetchCurrentPageId ( ) {
792- for ( const layer of TPEN . activeProject ?. layers ) {
793- const page = layer . pages . find (
794- p => p . id . split ( '/' ) . pop ( ) === TPEN . screen . pageInQuery
795- )
796- if ( page ) return page . id
797- }
798- }
799-
800- fetchCanvasesFromCurrentLayer ( ) {
801- const currentLayer = TPEN . activeProject ?. layers . find ( layer =>
802- layer . pages . some ( page => page . id . split ( '/' ) . pop ( ) === TPEN . screen . pageInQuery )
803- )
804- return currentLayer ?. pages . flatMap ( page => ( {
805- id : page . target ,
806- label : page . label
807- } ) ) ?? [ ]
808- }
809-
810791 #getCurrentLineId( ) {
811792 return this . #page?. items ?. [ TPEN . activeLineIndex ] ?. id ?? null
812793 }
@@ -913,8 +894,8 @@ export default class SimpleTranscriptionInterface extends HTMLElement {
913894 iframe . style . height = '100%'
914895 iframe . style . border = 'none'
915896
916- // Extract and store iframe origin for secure postMessage
917- this . _iframeOrigin = new URL ( tool . url ) . origin
897+ // Extract and store iframe origin for secure postMessage
898+ this . _iframeOrigin = new URL ( tool . url ) . origin
918899
919900 iframe . addEventListener ( 'load' , ( ) => {
920901 this . #sendTPENContextToTool( iframe . contentWindow )
You can’t perform that action at this time.
0 commit comments