commit | 6f59f2adeafb4f9ee8ea7bc7b51e750e7927fe62 | [log] [tgz] |
---|---|---|
author | Thomas Draebing <thomas.draebing@sap.com> | Mon Jan 24 10:27:31 2022 +0100 |
committer | Thomas Draebing <thomas.draebing@sap.com> | Mon Jan 24 10:27:31 2022 +0100 |
tree | ca9af3e28cb310ae3b9a534270d259c34adf6961 | |
parent | 0ed75041970f67e1b4afd5d6770515a126df19c6 [diff] |
Fix reading of cookies In Gerrit versions newer than 3.4, the utils-class was not accessible anymore by plugins and thus using it to find a cookie didn't work anymore. Change-Id: I9b923dc769adb5a819d7bde7d2d977733b800e06
diff --git a/gr-messageoftheday/gr-messageoftheday-banner.js b/gr-messageoftheday/gr-messageoftheday-banner.js index ae84e85..1a351a9 100644 --- a/gr-messageoftheday/gr-messageoftheday-banner.js +++ b/gr-messageoftheday/gr-messageoftheday-banner.js
@@ -57,7 +57,7 @@ } _isHidden() { - this._hidden = window.util.getCookie(`msg-${this._message.id}`) === '1'; + this._hidden = document.cookie.search(`msg-${this._message.id}=`) > -1; } }