mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 00:18:55 +08:00
ooops. régis can't refactor...
This commit is contained in:
parent
35214f0b3a
commit
7938843b50
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user