Skip to content

Commit

Permalink
Merge pull request #936 from vorth/two-fixes
Browse files Browse the repository at this point in the history
Two defect fixes
  • Loading branch information
vorth authored Dec 13, 2024
2 parents 28b98df + bd5d592 commit cea6612
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions online/src/app/classic/menus/filemenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ export const FileMenu = () =>
setState( 'ignoreDesignName', true ); // transient, means we'll still have an untitled design after the fetch
fetchDesignUrl( url, { preview: false, debug: false } );

const name = files[ 0 ] .name;
let name = files[ 0 ] .name;
if ( name && name .toLowerCase() .endsWith( '.vzome' ) ) {
setState( 'designName', name .substring( 0, name.length - 6 ) );
name = name .substring( 0, name.length - 6 );
setState( 'designName', name );
setState( 'sharing', 'title', name .replaceAll( '-', ' ' ) );
}

Expand Down
5 changes: 5 additions & 0 deletions online/src/worker/legacy/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ export class JavaDomElement
this.nativeElement.children.push( child.nativeElement );
}

setTextContent( value )
{
this.nativeElement.children.push( value );
}

setAttribute( name, value )
{
this.nativeElement.attributes[ name ] = value;
Expand Down

0 comments on commit cea6612

Please sign in to comment.