Explorar el Código

add a `featureToggle` property to ide.

Shane Kilkelly hace 10 años
padre
commit
d54515a9a7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      services/web/public/coffee/ide.coffee

+ 3 - 0
services/web/public/coffee/ide.coffee

@@ -124,5 +124,8 @@ define [
 		catch err
 			console.error err
 
+		# User can append ?ft=somefeature to url to activate a feature toggle
+		ide.featureToggle = location?.search?.match(/^\?ft=(\w+)$/)?[1]
+
 
 	angular.bootstrap(document.body, ["SharelatexApp"])