Fixed browserpool not resetting panel after gmod update

Shoutout to CaveeJohnson for the original fix 🎉"
This commit is contained in:
samuelmaddock 2017-03-13 22:18:46 -04:00
parent 3b327dd812
commit e208424bcf
2 changed files with 5 additions and 2 deletions

View File

@ -63,7 +63,7 @@ local numRequests = 0
-- Default URL to set browsers on setup/teardown.
-- @type String
--
local defaultUrl = "about:blank"
local defaultUrl = "data:text/html,"
---
-- JavaScript code to remove an object's property.
@ -97,6 +97,9 @@ local function setupPanel( panel )
-- Browser panels are usually manually drawn, use a regular panel if not
panel:SetPaintedManually(true)
-- Fix for panel not getting cleared after 3/2017 update
panel:SetHTML( "" )
-- Set default URL
panel:OpenURL( defaultUrl )

View File

@ -37,7 +37,7 @@ function PANEL:Init()
self.Callbacks = {}
self.MouseActions = {}
self.URL = "about:blank"
self.URL = "data:text/html,"
--
-- Implement a console - because awesomium doesn't provide it for us anymore