1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 02:14:52 +12:00

this should help futur occurrences of #65

This commit is contained in:
Raymond Hill 2014-11-22 01:33:19 -02:00
parent dbac4f742c
commit cf02253cdd

View file

@ -359,6 +359,12 @@ Matrix.prototype.evaluateCell = function(srcHostname, desHostname, type) {
/******************************************************************************/
Matrix.prototype.evaluateCellZ = function(srcHostname, desHostname, type) {
// https://github.com/gorhill/uMatrix/issues/65
// Hardcoded `doc` rule
if ( srcHostname === '*' && desHostname === '*' && type === 'doc' ) {
return 2;
}
var bitOffset = typeBitOffsets[type];
var s = srcHostname;
var v;