Skip to content

Commit

Permalink
Set title.
Browse files Browse the repository at this point in the history
  • Loading branch information
omphalos committed Dec 31, 2013
1 parent 247f8f9 commit 5fee1bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html ng-app="app">
<head>
<title ng-bind="windowTitle">Earhorn</title>
<title>Earhorn</title>

<!--[if lt IE 10]>
<script>window.location = 'http://browsehappy.com'</script>
Expand Down
7 changes: 5 additions & 2 deletions modules/main/MainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ angular.module('main').controller('MainCtrl', [
'settingsService',
'consoleInterface',
'$compile',
'$timeout', function(
'$timeout',
'$window', function(
$scope,
$location,
logClient,
timelineFactory,
settingsService,
consoleInterface,
$compile,
$timeout) {
$timeout,
$window) {

//////////////////////////
// Set up our services. //
Expand Down Expand Up @@ -53,6 +55,7 @@ angular.module('main').controller('MainCtrl', [

$scope.$watch('editScript', function(newValue) {
$scope.editorFocus = true
$window.document.title = newValue
})

$scope.open = function() {
Expand Down

0 comments on commit 5fee1bb

Please sign in to comment.