Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Feb 25, 2018
1 parent 195ebc1 commit 900becc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "BetterTTV",
"author": "Night",
"version": "7.2.12",
"version": "7.2.13",
"description": "BetterTTV enhances Twitch with new features, emotes, and more.",
"main": "betterttv.js",
"scripts": {
Expand All @@ -12,44 +12,44 @@
"url": "https://github.com/night/BetterTTV.git"
},
"dependencies": {
"autoprefixer": "^7.2.4",
"autoprefixer": "^8.0.0",
"babel-core": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-runtime": "^6.26.0",
"babelify": "^8.0.0",
"browserify": "^15.0.0",
"browserify": "^16.1.0",
"cookies-js": "^1.2.3",
"del": "^3.0.0",
"emojilib": "^2.2.9",
"emojilib": "^2.2.12",
"envify": "^4.1.0",
"git-rev-sync": "^1.9.1",
"git-rev-sync": "^1.10.0",
"gulp": "^3.9.1",
"gulp-babel": "^7.0.0",
"gulp-babel": "^7.0.1",
"gulp-concat": "^2.6.1",
"gulp-eslint": "^4.0.1",
"gulp-eslint": "^4.0.2",
"gulp-footer": "^2.0.1",
"gulp-gzip": "^1.4.1",
"gulp-gzip": "^1.4.2",
"gulp-header": "^2.0.1",
"gulp-if": "^2.0.2",
"gulp-postcss": "^7.0.1",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^2.6.3",
"gulp-sourcemaps": "^2.6.4",
"gulp-tar": "^2.1.0",
"gulp-uglify": "^3.0.0",
"jquery": "^3.2.1",
"jquery": "^3.3.1",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"moment": "^2.20.1",
"msgpack-lite": "^0.1.26",
"postcss-hexrgba": "^1.0.0",
"precss": "^3.1.0",
"raven-js": "^3.21.0",
"precss": "^3.1.1",
"raven-js": "^3.22.3",
"request": "^2.83.0",
"require-globify": "^1.4.1",
"resizable": "^1.2.0",
"twemoji": "^2.5.0",
"twitch-chat-emotes": "github:night/Userscript--Twitch-Chat-Emotes#250e2ee1a3cbe687aec1d6df80dd4c7d23f84593",
"twitch-chat-emotes": "github:night/Userscript--Twitch-Chat-Emotes#57b3d3dbc65d14ef35d4ca8eb51e2dd5acfd4cc2",
"uglify-save-license": "^0.4.1",
"view-list": "^2.1.0",
"vinyl-buffer": "^1.0.1",
Expand Down
10 changes: 9 additions & 1 deletion src/modules/chat_tab_completion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ const AUTOCOMPLETE_SUGGESTIONS_SELECTOR = 'div[data-a-target="autocomplete-ballo
const INPUT_EVENT = new Event('input', {bubbles: true});

function setTextareaValue($inputField, msg) {
$inputField.val(msg)[0].dispatchEvent(INPUT_EVENT);
$inputField.val(msg);
const inputField = $inputField[0];
inputField.dispatchEvent(INPUT_EVENT);
const instance = twitch.getReactInstance(inputField);
if (!instance) return;
const props = instance.memoizedProps;
if (props && props.onChange) {
props.onChange({target: inputField});
}
}

function normalizedStartsWith(word, prefix) {
Expand Down
5 changes: 4 additions & 1 deletion src/utils/twitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ module.exports = {

TMIActionTypes,

getReactInstance,

getCurrentChannel() {
return currentChannel;
},
Expand Down Expand Up @@ -250,7 +252,8 @@ module.exports = {

chatController.chatService.onChatNoticeEvent({
msgid: Date.now(),
body
body,
channel: `#${chatController.chatService.channelLogin}`
});
},

Expand Down

0 comments on commit 900becc

Please sign in to comment.