Permalink
Browse files

Recompile when compiler changes, closes #172

1 parent 53a73c4 commit 0a4bcb1e604119cf016e3ab9e168c0912697ef75 @jedfoster committed May 13, 2016
Showing with 6 additions and 3 deletions.
  1. +4 −1 client/sassmeister/index.coffee
  2. +2 −2 config/api.yml
@@ -133,7 +133,7 @@ angular.module 'SassMeister', [
return ['> 1%', 'last 2 versions']
- $scope.compile = (app)->
+ $scope.compile = (app) ->
return if $state.includes('application.404') or $state.includes('application.about') or $state.includes('application.embedded') or $rootScope.isEmbedded
$scope.compileTime = false
@@ -194,6 +194,9 @@ angular.module 'SassMeister', [
$scope.renderHtml = (app) ->
Sandbox.render app
+ $scope.$watch 'app.compiler', ->
+ $scope.compile $scope.app
+
$scope.$watch 'preferences.emmet', (value) ->
$window.ga('send', 'event', 'UI', 'Emmet', "#{value}")
View
@@ -7,8 +7,8 @@ api:
development: &default_settings
endpoints:
lib: 'http://lib.sassmeister.dev'
- '3.3': 'http://sass33.sassmeister.dev'
- '3.4': 'http://sass34.sassmeister.dev'
+ '3.3': 'http://sass3-3.sassmeister.dev'
+ '3.4': 'http://sass3-4.sassmeister.dev'
'4.0': 'http://sass4-0alpha.sassmeister.dev'
test:

0 comments on commit 0a4bcb1

Please sign in to comment.