Fix tab title
This commit is contained in:
		
							parent
							
								
									dfc9771036
								
							
						
					
					
						commit
						3945fba7d6
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -115,6 +115,8 @@
 | 
			
		|||
 | 
			
		||||
    <script type='text/javascript'>
 | 
			
		||||
      var namespace = 'kne';
 | 
			
		||||
      var wTitle = 'KN_E'
 | 
			
		||||
 | 
			
		||||
      window.saveFile = function(filename) {
 | 
			
		||||
          const buf = FS.readFile('/game/' + filename);
 | 
			
		||||
          const b64 = btoa(String.fromCharCode.apply(null, buf));
 | 
			
		||||
| 
						 | 
				
			
			@ -206,6 +208,8 @@
 | 
			
		|||
      };
 | 
			
		||||
 | 
			
		||||
      window.fileLoadedAsync = function(file) {
 | 
			
		||||
          document.title = wTitle;
 | 
			
		||||
 | 
			
		||||
          if (!(/.*Map.*rxdata/i.test(file))) return;
 | 
			
		||||
 | 
			
		||||
          fetch('preload/' + file + '.json')
 | 
			
		||||
| 
						 | 
				
			
			@ -274,6 +278,8 @@
 | 
			
		|||
              hideTimer = 0;
 | 
			
		||||
          }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      document.title = wTitle;
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
    <script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue