From cf02253cdd14994136723786fc27aeebd1ffee35 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 22 Nov 2014 01:33:19 -0200 Subject: [PATCH] this should help futur occurrences of #65 --- src/js/matrix.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/matrix.js b/src/js/matrix.js index 2017c69..7cf3e20 100644 --- a/src/js/matrix.js +++ b/src/js/matrix.js @@ -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;