1
0
Fork 0
forked from 0x2620/oxjs

get rid of black background in chrome fullscreen mode; dont update url in fullscreen mode, fixes #1910

This commit is contained in:
j 2013-10-25 13:49:14 +00:00
commit 19ae3c591a
2 changed files with 5 additions and 3 deletions

View file

@ -1006,7 +1006,7 @@ Ox.URL = function(options) {
@*/
that.pop = function() {
if (self.previousURL) {
history.pushState && history.pushState(
history.pushState && !Ox.Fullscreen.getState() && history.pushState(
{}, self.previousTitle, self.previousURL
);
document.title = self.previousTitle;
@ -1040,7 +1040,7 @@ Ox.URL = function(options) {
+ document.location.search
+ document.location.hash;
if (url != self.previousURL) {
history.pushState && history.pushState(
history.pushState && !Ox.Fullscreen.getState() && history.pushState(
Ox.extend(state, {title: title}), '', url
);
document.title = title;
@ -1070,7 +1070,7 @@ Ox.URL = function(options) {
replaceState(state, title, url);
}
function replaceState(state, title, url) {
history.replaceState && history.replaceState(
history.replaceState && !Ox.Fullscreen.getState() && history.replaceState(
Ox.extend(state, {title: title}), '', url
);
document.title = title;