ooops. régis can't refactor...

This commit is contained in:
Régis Hanol 2013-10-11 18:49:17 +02:00
parent 35214f0b3a
commit 7938843b50

View file

@ -23,7 +23,7 @@ Discourse.UploadSelectorView = Discourse.ModalBodyView.extend({
// cf. http://stackoverflow.com/a/9851769/11983
var isChrome = !!window.chrome && !(!!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0);
// chrome is the only browser that support copy & paste of images.
return I18n.t("upload_selector.hint" + (this.get("isChrome") ? "_for_chrome" : ""));
return I18n.t("upload_selector.hint" + (isChrome ? "_for_chrome" : ""));
}.property(),
didInsertElement: function() {