Explorar o código

add a `featureToggle` property to ide.

Shane Kilkelly %!s(int64=10) %!d(string=hai) anos
pai
achega
d54515a9a7
Modificáronse 1 ficheiros con 3 adicións e 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"])